Skip to content

Commit ad5414c

Browse files
authored
Update Jenkinsfile
1 parent d8426eb commit ad5414c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

Jenkinsfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pipeline {
22
agent any
33
tools {
4-
maven "MAVEN"
4+
maven "MAVEN" // Ensure this matches your Maven installation name in Jenkins
55
}
66
stages {
77
stage("build") {
@@ -10,24 +10,26 @@ pipeline {
1010
}
1111
}
1212
stage("test") {
13-
parallel {
14-
test1: {
15-
echo "test 1"
16-
},
17-
test2: {
18-
echo "test 2"
19-
}
13+
steps {
14+
parallel(
15+
test1: {
16+
echo "test 1"
17+
},
18+
test2: {
19+
echo "test 2"
20+
}
21+
)
2022
}
2123
}
2224
stage("run") {
2325
steps {
24-
bat "java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App"
26+
bat "java -cp target\\my-app-1.0-SNAPSHOT.jar com.mycompany.app.App"
2527
}
2628
}
2729
}
2830
post {
2931
success {
30-
archiveArtifacts artifacts: "**/target/*.jar"
32+
archiveArtifacts artifacts: "**\\target\\*.jar"
3133
}
3234
}
3335
}

0 commit comments

Comments
 (0)