You've already forked jenkins-lib
forked from jenkins/jenkins-lib
Наметки по jenkins-lib
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.groovy eol=lf
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.idea/
|
||||||
|
*.iml
|
7
vars/cmd.groovy
Normal file
7
vars/cmd.groovy
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user