1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-12-01 09:50:19 +02:00
jenkins-lib/vars/cmd.groovy

10 lines
270 B
Groovy
Raw Normal View History

import ru.pulsar.jenkins.library.steps.Cmd
import ru.pulsar.jenkins.library.ioc.ContextRegistry
int call(String script, boolean returnStatus = false) {
ContextRegistry.registerDefaultContext(this)
2021-06-16 09:29:35 +02:00
Cmd cmd = new Cmd(script, returnStatus)
return cmd.run()
2020-03-17 14:38:26 +02:00
}