1
0

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

This commit is contained in:
Nikita Gryzlov 2020-03-17 15:38:26 +03:00
commit 920e1464a9
No known key found for this signature in database
GPG Key ID: 208C3EA2906C2E3E
3 changed files with 10 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.groovy eol=lf

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea/
*.iml

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"
}
}