1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-11-30 09:46:41 +02:00
jenkins-lib/vars/cmd.groovy
2021-06-16 10:29:35 +03:00

10 lines
270 B
Groovy

import ru.pulsar.jenkins.library.steps.Cmd
import ru.pulsar.jenkins.library.ioc.ContextRegistry
int call(String script, boolean returnStatus = false) {
ContextRegistry.registerDefaultContext(this)
Cmd cmd = new Cmd(script, returnStatus)
return cmd.run()
}