We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6f45bd commit 9f24aabCopy full SHA for 9f24aab
Jenkinsfile
@@ -1,4 +1,3 @@
1
-
2
pipeline {
3
agent none
4
options {
@@ -19,8 +18,13 @@ pipeline {
19
18
bat 'chcp 65001 > nul && opm install tool1cd'
20
21
if( fileExists ('tasks/test.os') ){
22
- bat 'chcp 65001 > nul && oscript tasks/test.os'
23
- junit 'tests.xml'
+ try {
+ cmd("oscript tasks/test.os")
+ junit 'tests.xml'
24
+ } catch (Exception err) {
25
26
+ throw err;
27
+ }
28
}
29
else
30
echo 'no testing task'
@@ -93,3 +97,11 @@ pipeline {
93
97
94
98
95
99
100
+
101
+def cmd(command) {
102
+ if (isUnix()) {
103
+ sh "${command}"
104
+ } else {
105
+ bat "chcp 65001\n${command}"
106
107
+}
0 commit comments