mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
2958 - Slack notification : fix escaped branch name
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -53,16 +53,16 @@ pipeline {
|
|||||||
junit 'var/test/phpunit-log.junit.xml'
|
junit 'var/test/phpunit-log.junit.xml'
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
slackSend(channel: "#jenkins-itop", color: '#FF0000', message: "Ho no! Build failed! (${currentBuild.result}), Job '${env.JOB_NAME_ESCAPED} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
|
slackSend(channel: "#jenkins-itop", color: '#FF0000', message: "Ho no! Build failed! (${currentBuild.result}), Job '${env.JOB_NAME_UNESCAPED} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
|
||||||
}
|
}
|
||||||
fixed {
|
fixed {
|
||||||
slackSend(channel: "#jenkins-itop", color: '#FFa500', message: "Yes! Build repaired! (${currentBuild.result}), Job '${env.JOB_NAME_ESCAPED} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
|
slackSend(channel: "#jenkins-itop", color: '#FFa500', message: "Yes! Build repaired! (${currentBuild.result}), Job '${env.JOB_NAME_UNESCAPED} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
DEBUG_UNIT_TEST = '0'
|
DEBUG_UNIT_TEST = '0'
|
||||||
JOB_NAME_ESCAPED = env.JOB_NAME.replaceAll("%2F", "/")
|
JOB_NAME_UNESCAPED = env.JOB_NAME.replaceAll("%2F", "/")
|
||||||
}
|
}
|
||||||
options {
|
options {
|
||||||
timeout(time: 20, unit: 'MINUTES')
|
timeout(time: 20, unit: 'MINUTES')
|
||||||
|
|||||||
Reference in New Issue
Block a user