You've already forked jenkins-lib
mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2025-08-25 20:09:25 +02:00
Update src/ru/pulsar/jenkins/library/steps/WithCoverage.groovy
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -28,14 +28,16 @@ class WithCoverage implements Serializable {
|
||||
|
||||
//noinspection GroovyMissingReturnStatement
|
||||
steps.lock(context.lockableResource) {
|
||||
if (coverageOptions.coverage) {
|
||||
CoverageUtils.startCoverage(steps, config, context, stage)
|
||||
}
|
||||
try {
|
||||
if (coverageOptions.coverage) {
|
||||
CoverageUtils.startCoverage(steps, config, context, stage)
|
||||
}
|
||||
|
||||
body()
|
||||
|
||||
if (coverageOptions.coverage) {
|
||||
CoverageUtils.stopCoverage(steps, config, context)
|
||||
body()
|
||||
} finally {
|
||||
if (coverageOptions.coverage) {
|
||||
CoverageUtils.stopCoverage(steps, config, context)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user