dotfiles/Jenkinsfile
Johannes Rothe f0ecb173ac
Some checks failed
dotfiles/pipeline/head There was a failure building this commit
Jenkinsfile: add mail pipeline
2021-08-31 17:05:45 +02:00

17 lines
420 B
Groovy

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