mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
JenkinsFile : add fixed notification
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -51,6 +51,9 @@ pipeline {
|
|||||||
failure {
|
failure {
|
||||||
slackSend(channel: "#jenkins-itop", color: '#FF0000', message: "Ho no! Build failed! (${currentBuild.result}), Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
|
slackSend(channel: "#jenkins-itop", color: '#FF0000', message: "Ho no! Build failed! (${currentBuild.result}), Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
|
||||||
}
|
}
|
||||||
|
fixed {
|
||||||
|
slackSend(channel: "#jenkins-itop", color: '#FFa500', message: "Yes! Build repaired! (${currentBuild.result}), Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
@@ -59,4 +62,4 @@ pipeline {
|
|||||||
options {
|
options {
|
||||||
timeout(time: 20, unit: 'MINUTES')
|
timeout(time: 20, unit: 'MINUTES')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user