1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-12-02 09:51:51 +02:00
jenkins-lib/vars/cmd.groovy
2024-03-06 18:29:38 +03:00

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()
}