Commit c0818d51 authored by Ben Cooksley's avatar Ben Cooksley

A few fixes - it's FAILURE not FAILED...

parent 5171d236
......@@ -143,7 +143,7 @@ timestamps {
// These parts aren't run within a stage as they're purely administrative and their output will be minimal if any exists
// First, do we need to capture a copy of the Workspace? We do this if it was unstable or failed
// This is to allow developers to examine what happened more easily
if( currentBuild.result == 'FAILED' || currentBuild.result == 'UNSTABLE' ) {
if( currentBuild.result == 'FAILURE' || currentBuild.result == 'UNSTABLE' ) {
// Capture the workspace
sh "python3 -u ci-tooling/helpers/capture-workspace.py --environment ${ciEnvironment}"
}
......@@ -151,8 +151,8 @@ timestamps {
// Let's determine if we need to send out notifications
// What happened in our previous build?
def previousResult = currentBuild.previousBuild?.result
// If our condition has changed, is FAILED or UNSTABLE then we want to send an email
if( previousResult != currentBuild.result || currentBuild.result == 'FAILED' || currentBuild.result == 'UNSTABLE' ) {
// If our condition has changed, is FAILURE or UNSTABLE then we want to send an email
if( previousResult != currentBuild.result || currentBuild.result == 'FAILURE' || currentBuild.result == 'UNSTABLE' ) {
// Construct the list of our recipients - starting with the ones requested as part of our job
def mailTo = [ emailRecipients ]
// If someone kicked this job off, they're presumably interested as well
......@@ -164,6 +164,7 @@ timestamps {
emailext(
to: mailTo,
body: '${JELLY_SCRIPT,template="html_gmail"}',
mimeType: 'text/html',
subject: 'KDE CI: ${PROJECT_NAME} - Build # ${BUILD_NUMBER} - ${BUILD_STATUS}!',
attachLog: true
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment