You've already forked jenkins-lib
forked from jenkins/jenkins-lib
command -> script
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
def call(String command, boolean returnStatus = false) {
|
def call(String script, boolean returnStatus = false) {
|
||||||
if (isUnix()) {
|
if (isUnix()) {
|
||||||
sh script: "${command}", returnStatus: returnStatus, encoding: "UTF-8"
|
sh script: "${script}", returnStatus: returnStatus, encoding: "UTF-8"
|
||||||
} else {
|
} else {
|
||||||
bat script: "chcp 65001 > nul \n${command}", returnStatus: returnStatus, encoding: "UTF-8"
|
bat script: "chcp 65001 > nul \n${script}", returnStatus: returnStatus, encoding: "UTF-8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user