Skip to content

Commit

Permalink
Add fail h
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneseymour committed Jun 3, 2020
1 parent 697ef89 commit 450df78
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .ci/Jenkinsfile_coverage
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ kibanaPipeline(timeoutMinutes: 240) {
kibanaCoverage.runTests()
handleIngestion(TIME_STAMP)
}

if (params.NOTIFY_ON_FAILURE) {
kibanaPipeline.bash('echo "### Something failed"', '### On Failure Print')
kibanaCoverage.onFailure()
}
handleFail()
}
}
kibanaPipeline.sendMail()
Expand All @@ -37,4 +33,10 @@ def handleIngestion(timestamp) {
kibanaCoverage.uploadCoverageStaticSite(timestamp)
}

def handleFail() {
def buildStatus = buildUtils.getBuildStatus()
if(params.NOTIFY_ON_FAILURE && buildStatus != 'SUCCESS' && buildStatus != 'ABORTED') {
kibanaCoverage.onFailure()
}
}

0 comments on commit 450df78

Please sign in to comment.