Commit 93dac3fb authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther

blessed-builds: Move mail sending to finally

We always want to send mail

Fixes: 2b2516b0
parent 312ee409
......@@ -214,21 +214,16 @@ pkgs.each { pkg ->
}
}
}
stage('Postbuild') {
node ('${node_label}') {
emailext (
to: "${email_to}",
subject: "[arm02] \${currentBuild.result} \${currentBuild.fullDisplayName}",
attachLog: true,
)
}
}
} catch(err) {
if(currentBuild.result == 'NOT_BUILT') {
print "Build aborted. Build criteria not met."
}
} finally {
emailext (
to: "${email_to}",
subject: "[arm02] \${currentBuild.result} \${currentBuild.fullDisplayName}",
attachLog: true,
)
cleanWs cleanWhenFailure: false, cleanWhenSuccess: true, deleteDirs: 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