mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Use different method of determining build status in pipelines (#45814)
* Switch method of determining build status for pipeline jobs to handle aborted builds better
This commit is contained in:
parent
146df62836
commit
af4db98ccc
1 changed files with 6 additions and 2 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -1,5 +1,7 @@
|
|||
#!/bin/groovy
|
||||
|
||||
library 'kibana-pipeline-library'
|
||||
|
||||
stage("Kibana Pipeline") { // This stage is just here to help the BlueOcean UI a little bit
|
||||
timeout(time: 180, unit: 'MINUTES') {
|
||||
timestamps {
|
||||
|
@ -246,10 +248,12 @@ def sendInfraMail() {
|
|||
|
||||
def sendKibanaMail() {
|
||||
catchError {
|
||||
if(params.NOTIFY_ON_FAILURE && currentBuild.result != 'SUCCESS' && currentBuild.result != 'ABORTED') {
|
||||
def buildStatus = buildUtils.getBuildStatus()
|
||||
|
||||
if(params.NOTIFY_ON_FAILURE && buildStatus != 'SUCCESS' && buildStatus != 'ABORTED') {
|
||||
emailext(
|
||||
to: 'build-kibana@elastic.co',
|
||||
subject: "${env.JOB_NAME} - Build # ${env.BUILD_NUMBER} - ${currentBuild.result}",
|
||||
subject: "${env.JOB_NAME} - Build # ${env.BUILD_NUMBER} - ${buildStatus}",
|
||||
body: '${SCRIPT,template="groovy-html.template"}',
|
||||
mimeType: 'text/html',
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue