Disable slack notifications
This commit is contained in:
parent
85ef020952
commit
f6b4b63f6d
|
@ -33,7 +33,7 @@ def killall_jobs() {
|
|||
}
|
||||
|
||||
if (killnums != "") {
|
||||
slackSend color: "danger", channel: "#jenkins", message: "Killing task(s) ${fixed_job_name} ${killnums} in favor of #${buildnum}, ignore following failed builds for ${killnums}";
|
||||
//slackSend color: "danger", channel: "#jenkins", message: "Killing task(s) ${fixed_job_name} ${killnums} in favor of #${buildnum}, ignore following failed builds for ${killnums}";
|
||||
}
|
||||
echo "Done killing";
|
||||
}
|
||||
|
@ -70,9 +70,9 @@ def buildStep(DOCKER_ROOT, DOCKERIMAGE, DOCKERTAG, DOCKERFILE, BUILD_NEXT, BUILD
|
|||
build "${BUILD_NEXT}/${env.BRANCH_NAME}";
|
||||
}
|
||||
} catch(err) {
|
||||
slackSend color: "danger", channel: "#jenkins", message: "Build Failed: ${fixed_job_name} #${env.BUILD_NUMBER} Target: ${DOCKER_ROOT}/${DOCKERIMAGE}:${tag} (<${env.BUILD_URL}|Open>)"
|
||||
//slackSend color: "danger", channel: "#jenkins", message: "Build Failed: ${fixed_job_name} #${env.BUILD_NUMBER} Target: ${DOCKER_ROOT}/${DOCKERIMAGE}:${DOCKERTAG} (<${env.BUILD_URL}|Open>)"
|
||||
currentBuild.result = 'FAILURE'
|
||||
notify("Build Failed: ${fixed_job_name} #${env.BUILD_NUMBER} Target: ${DOCKER_ROOT}/${DOCKERIMAGE}:${tag}")
|
||||
notify("Build Failed: ${fixed_job_name} #${env.BUILD_NUMBER} Target: ${DOCKER_ROOT}/${DOCKERIMAGE}:${DOCKERTAG}")
|
||||
throw err
|
||||
}
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ node('master') {
|
|||
}
|
||||
|
||||
def fixed_job_name = env.JOB_NAME.replace('%2F','/');
|
||||
slackSend color: "good", channel: "#jenkins", message: "Build Started: ${fixed_job_name} #${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)";
|
||||
//slackSend color: "good", channel: "#jenkins", message: "Build Started: ${fixed_job_name} #${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)";
|
||||
|
||||
checkout scm;
|
||||
|
||||
|
|
Loading…
Reference in New Issue