Update Jenkinsfile
This commit is contained in:
parent
74f688b323
commit
1dfb5c4f78
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -19,24 +19,24 @@ pipeline {
|
|||||||
|
|
||||||
stage('deploySONAR'){
|
stage('deploySONAR'){
|
||||||
steps{
|
steps{
|
||||||
sh '/var/jenkins_home/sonar-scanner-4.2.0.1873-linux/bin/sonar-scanner'
|
sh 'sonar-scanner'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
unstable {
|
unstable {
|
||||||
script {
|
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 {
|
failure {
|
||||||
script {
|
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 {
|
fixed {
|
||||||
script {
|
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…
Reference in New Issue
Block a user