mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2024-12-11 11:19:08 +02:00
10 lines
315 B
Groovy
10 lines
315 B
Groovy
import ru.pulsar.jenkins.library.steps.Cmd
|
|
import ru.pulsar.jenkins.library.ioc.ContextRegistry
|
|
|
|
def call(String script, boolean returnStatus = false, boolean returnStdout = false ) {
|
|
ContextRegistry.registerDefaultContext(this)
|
|
|
|
Cmd cmd = new Cmd(script, returnStatus, returnStdout)
|
|
return cmd.run()
|
|
}
|