mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2024-11-20 18:15:38 +02:00
Наметки по jenkins-lib
This commit is contained in:
commit
920e1464a9
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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user