[QA] slack notify on failure (#68126)
This commit is contained in:
parent
c98cfda890
commit
5bfd704dd8
|
@ -11,8 +11,11 @@ kibanaPipeline(timeoutMinutes: 240) {
|
||||||
'CODE_COVERAGE=1', // Enables coverage. Needed for multiple ci scripts, such as remote.ts, test/scripts/*.sh, schema.js, etc.
|
'CODE_COVERAGE=1', // Enables coverage. Needed for multiple ci scripts, such as remote.ts, test/scripts/*.sh, schema.js, etc.
|
||||||
]) {
|
]) {
|
||||||
workers.base(name: 'coverage-worker', size: 'l', ramDisk: false, bootstrapped: false) {
|
workers.base(name: 'coverage-worker', size: 'l', ramDisk: false, bootstrapped: false) {
|
||||||
kibanaCoverage.runTests()
|
catchError {
|
||||||
handleIngestion(TIME_STAMP)
|
kibanaCoverage.runTests()
|
||||||
|
handleIngestion(TIME_STAMP)
|
||||||
|
}
|
||||||
|
handleFail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
kibanaPipeline.sendMail()
|
kibanaPipeline.sendMail()
|
||||||
|
@ -29,4 +32,13 @@ def handleIngestion(timestamp) {
|
||||||
kibanaCoverage.uploadCoverageStaticSite(timestamp)
|
kibanaCoverage.uploadCoverageStaticSite(timestamp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def handleFail() {
|
||||||
|
def buildStatus = buildUtils.getBuildStatus()
|
||||||
|
if(params.NOTIFY_ON_FAILURE && buildStatus != 'SUCCESS' && buildStatus != 'ABORTED') {
|
||||||
|
slackNotifications.sendFailedBuild(
|
||||||
|
channel: '#kibana-qa',
|
||||||
|
username: 'Kibana QA'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue