1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-08-25 20:09:25 +02:00

refactoring

This commit is contained in:
Dima
2024-12-01 14:18:06 +03:00
parent a004277b2e
commit 20d0b05619
10 changed files with 138 additions and 94 deletions

12
vars/withCoverage.groovy Normal file
View File

@@ -0,0 +1,12 @@
import ru.pulsar.jenkins.library.configuration.JobConfiguration
import ru.pulsar.jenkins.library.configuration.StepCoverageOptions
import ru.pulsar.jenkins.library.ioc.ContextRegistry
import ru.pulsar.jenkins.library.steps.Coverable
import ru.pulsar.jenkins.library.steps.WithCoverage
def call(JobConfiguration config, Coverable stage, StepCoverageOptions options, Closure body) {
ContextRegistry.registerDefaultContext(this)
WithCoverage withCoverage = new WithCoverage(config, stage, options, body)
return withCoverage.run()
}