1
0

Наметки по jenkins-lib

This commit is contained in:
Nikita Gryzlov
2020-03-17 15:38:26 +03:00
commit 920e1464a9
3 changed files with 10 additions and 0 deletions

7
vars/cmd.groovy Normal file
View File

@@ -0,0 +1,7 @@
def call(String command, boolean returnStatus = false) {
if (isUnix()) {
sh script: "${command}", returnStatus: returnStatus, encoding: "UTF-8"
} else {
bat script: "chcp 65001 > nul \n${command}", returnStatus: returnStatus, encoding: "UTF-8"
}
}