Skip to content
Snippets Groups Projects
Commit 9ebabdbb authored by tgsiegel's avatar tgsiegel
Browse files

test

parent bf3e082d
No related branches found
No related tags found
No related merge requests found
libraries {
lib('shared-library')
}
pipeline {
agent {label "node3"}
tools {
......@@ -11,7 +7,8 @@ pipeline {
stage('notify') {
steps {
slack_send_start
BUILD_TRIGGERED_BY = "${currentBuild.getBuildCauses()[0].shortDescription} / ${currentBuild.getBuildCauses()[0].userId}"
slackSend(channel: "ci", message: "${JOB_NAME}-#${BUILD_NUMBER}-${GIT_BRANCH} triggered by ${BUILD_TRIGGERED_BY} (<${BUILD_URL}|Open>)")
}
}
......@@ -48,12 +45,14 @@ pipeline {
}
// post {
// success {
// slack_send_success
// }
// failure {
// slack_send_failure
// }
// }
post {
success {
BUILD_TRIGGERED_BY = "${currentBuild.getBuildCauses()[0].shortDescription} / ${currentBuild.getBuildCauses()[0].userId}"
slackSend(channel: "ci", color: "good", message: "${JOB_NAME}-#${BUILD_NUMBER}-${GIT_BRANCH} success after ${currentBuild.durationString} (<${BUILD_URL}|Open>)")
}
failure {
BUILD_TRIGGERED_BY = "${currentBuild.getBuildCauses()[0].shortDescription} / ${currentBuild.getBuildCauses()[0].userId}"
slackSend(channel: "ci", color: "danger", message: "${JOB_NAME}-#${BUILD_NUMBER}-${GIT_BRANCH} failed after ${currentBuild.durationString} (<${BUILD_URL}|Open>)")
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment