pipeline { agent any stages { stage('lint') { steps { sh 'ansible-lint dotfiles.yml' } } } post { failure { emailext body: 'Please check why $BUILD_TAG failed! See $BUILD_URL', subject: 'Build #$BUILD_NUMBER - $BUILD_STATUS', recipientProviders: [developers(), requestor()] } } }