File tree 1 file changed +9
-13
lines changed
1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -65,30 +65,26 @@ pipeline {
65
65
} // stage build
66
66
67
67
68
- // stage('dependencies') {
69
- // when {
70
- // expression { params.verify == 'true' }
71
- // }
72
- // steps {
73
- // script {
74
- // sh '''
75
- // mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
76
- // '''
77
- // }
78
- // }
79
- // } // stage dependencies
80
68
81
69
// --fail-fast
82
70
// -DargLine="-Xmx1024m"
83
71
stage(' maven package' ) {
84
72
steps {
85
73
script {
74
+ if (params. verify) {
75
+ // If the verify parameter is true, skip the tests
76
+ sh '''
77
+ mvn -Dfile.encoding=UTF-8 -Dversion=${VERSION} clean package -DskipTests=true -q
78
+ '''
79
+ } else {
80
+ // Otherwise, run the default command with tests
86
81
sh '''
87
82
mvn -Dfile.encoding=UTF-8 -Dversion=${VERSION} clean package jacoco:report -q
88
83
'''
84
+ }
89
85
}
90
86
}
91
- } // stage package
87
+ }
92
88
93
89
stage(' javadoc' ) {
94
90
when {
You can’t perform that action at this time.
0 commit comments