Skip to content

Commit 320a6b3

Browse files
committed
jenkins update
1 parent 51efda4 commit 320a6b3

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

Jenkinsfile

+9-13
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)