Update Jenkinsfile

master
Valentin Lechner 5 years ago
parent 74f688b323
commit 1dfb5c4f78

8
Jenkinsfile vendored

@ -19,24 +19,24 @@ pipeline {
stage('deploySONAR'){
steps{
sh '/var/jenkins_home/sonar-scanner-4.2.0.1873-linux/bin/sonar-scanner'
sh 'sonar-scanner'
}
}
}
post {
unstable {
script {
notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is unstable, please fix it in the near future", "**/*.log")
//notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is unstable, please fix it in the near future", "**/*.log")
}
}
failure {
script {
notifier.sendMail("Error while run CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}]", "**/*.log")
//notifier.sendMail("Error while run CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}]", "**/*.log")
}
}
fixed {
script {
notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is stable again :-)", "**/*.log")
//notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is stable again :-)", "**/*.log")
}
}
}

Loading…
Cancel
Save