Skip to content

Commit

Permalink
Drop catchError and use try / catch instead,
Browse files Browse the repository at this point in the history
to fail the build on test run and / or ingestion.
  • Loading branch information
wayneseymour committed Jun 15, 2020
1 parent 52c8e96 commit 448bab6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .ci/Jenkinsfile_coverage
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ kibanaPipeline(timeoutMinutes: 240) {
'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) {
catchError {
try {
kibanaCoverage.runTests()
handleIngestion(TIME_STAMP)
} catch (err) {
currentBuild.result = 'FAILURE'
handleFail()
}
handleFail()
}
}
kibanaPipeline.sendMail()
Expand Down

0 comments on commit 448bab6

Please sign in to comment.