Skip to content
Snippets Groups Projects
Unverified Commit 25686503 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer Committed by GitHub
Browse files

Disable mattermost notifications

parent 572e0a6a
No related branches found
No related tags found
No related merge requests found
......@@ -120,8 +120,8 @@ def call(ArrayList<String> dependencyList, String gitUrl='',
post {
failure {
emailext body: '$DEFAULT_CONTENT', recipientProviders: [brokenTestsSuspects(), brokenBuildSuspects(), developers()], subject: '[Jenkins] $DEFAULT_SUBJECT', to: env.MAILTO
mattermostSend channel: env.JOB_NAME, color: "danger", message: "Build of ${env.JOB_NAME} failed."
mattermostSend channel: "Jenkins", color: "danger", message: "Build of ${env.JOB_NAME} failed."
//mattermostSend channel: env.JOB_NAME, color: "danger", message: "Build of ${env.JOB_NAME} failed."
//mattermostSend channel: "Jenkins", color: "danger", message: "Build of ${env.JOB_NAME} failed."
}
always {
node('Docker') {
......@@ -132,8 +132,8 @@ def call(ArrayList<String> dependencyList, String gitUrl='',
script {
if (currentBuild?.getPreviousBuild()?.result == 'FAILURE') {
if (!currentBuild.resultIsWorseOrEqualTo(currentBuild.getPreviousBuild().result)) {
mattermostSend channel: env.JOB_NAME, color: "good", message: "Build of ${env.JOB_NAME} is good again."
mattermostSend channel: "Jenkins", color: "good", message: "Build of ${env.JOB_NAME} is good again."
//mattermostSend channel: env.JOB_NAME, color: "good", message: "Build of ${env.JOB_NAME} is good again."
//mattermostSend channel: "Jenkins", color: "good", message: "Build of ${env.JOB_NAME} is good again."
}
}
}
......
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