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

Update buildTestDeploy.groovy

parent decdaa6f
No related branches found
No related tags found
No related merge requests found
......@@ -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."
}
}
}
......
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