Skip to content

Commit

Permalink
add catch
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Dec 2, 2024
1 parent 0884437 commit 859cbdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ru/pulsar/jenkins/library/steps/WithCoverage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class WithCoverage implements Serializable {
}

body()
} catch (Exception e) {
throw new Exception("При выполнении блока произошла ошибка: ${e}")
} finally {
if (coverageOptions.coverage) {
CoverageUtils.stopCoverage(steps, config, context)
Expand Down

0 comments on commit 859cbdb

Please sign in to comment.