kibana/Jenkinsfile
Kibana Machine cda4ce54c7
require successful ci-stats for build success in PRs (#98846) (#98987)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-30 18:53:50 -04:00

22 lines
508 B
Groovy

#!/bin/groovy
library 'kibana-pipeline-library'
kibanaLibrary.load()
kibanaPipeline(timeoutMinutes: 210, checkPrChanges: true, setCommitStatus: true) {
slackNotifications.onFailure(disabled: !params.NOTIFY_ON_FAILURE) {
githubPr.withDefaultPrComments {
ciStats.trackBuild(requireSuccess: githubPr.isPr()) {
catchError {
retryable.enable()
kibanaPipeline.allCiTasks()
}
}
}
}
if (params.NOTIFY_ON_FAILURE) {
kibanaPipeline.sendMail()
}
}