File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 11pipeline {
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}
You can’t perform that action at this time.
0 commit comments