Update Jenkinsfile

This commit is contained in:
Valentin Lechner 2020-01-31 00:07:40 +01:00
parent 74f688b323
commit 1dfb5c4f78

8
Jenkinsfile vendored
View File

@ -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")
}
}
}