File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -65,30 +65,26 @@ pipeline {
6565 } // stage build
6666
6767
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
8068
8169 // --fail-fast
8270 // -DargLine="-Xmx1024m"
8371 stage(' maven package' ) {
8472 steps {
8573 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
8681 sh '''
8782 mvn -Dfile.encoding=UTF-8 -Dversion=${VERSION} clean package jacoco:report -q
8883 '''
84+ }
8985 }
9086 }
91- } // stage package
87+ }
9288
9389 stage(' javadoc' ) {
9490 when {
You can’t perform that action at this time.
0 commit comments