dotfiles/Jenkinsfile
Johannes Rothe ba2c3b97fe
All checks were successful
dotfiles/pipeline/head This commit looks good
Jenkinsfile: add mail pipeline
2021-08-31 17:11:21 +02:00

20 lines
618 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()]
}
fixed {
emailext body: '$BUILD_STATUS, see $BUILD_URL', subject: 'Build #$BUILD_NUMBER $PROJECT_NAME - $BUILD_STATUS!', recipientProviders: [developers(), requestor()]
}
}
}