mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2024-12-02 09:51:51 +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()
|
|
}
|