diff --git a/vars/buildTestDeploy.groovy b/vars/buildTestDeploy.groovy index 10dbf4a3f1fdbaad9870014b1729e36ba1c0e827..c44e435e1fad7bd08b182fe90b94571f09a054df 100644 --- a/vars/buildTestDeploy.groovy +++ b/vars/buildTestDeploy.groovy @@ -98,6 +98,7 @@ def call(ArrayList<String> dependencyList, String gitUrl='', 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." } always { node('Docker') { @@ -109,6 +110,7 @@ def call(ArrayList<String> dependencyList, String gitUrl='', if (currentBuild?.getPreviousBuild()?.result == 'FAILURE') { if (currentBuild.resultIsBetterOrEqualTo(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." } } }