Skip to content
Snippets Groups Projects
Commit d9cb7c04 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

fix syntax error

parent bb166a45
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ def call(ArrayList<String> dependencyList, String gitUrl='',
post {
failure {
emailext body: '$DEFAULT_CONTENT', recipientProviders: [brokenTestsSuspects(), brokenBuildSuspects(), developers()], subject: '[Jenkins] $DEFAULT_SUBJECT', to: env.RECIPIENT_LIST
mattermostSend channel: ${env.JOB_NAME}, color: danger, message: "Build of ${env.JOB_NAME} failed."
mattermostSend channel: env.JOB_NAME, color: danger, message: "Build of ${env.JOB_NAME} failed."
}
always {
node('Docker') {
......@@ -107,7 +107,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: env.JOB_NAME, color: good, message: "Build of ${env.JOB_NAME} is good again."
}
}
} // end always
......
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