Skip to content

Commit 3822dd1

Browse files
authored
enable system tests for Jenkins build (#463)
* enable system tests for Jenkins build * run system test on pull request, and run unit test always on Jenkins * junit publish failsafe and surefire reports
1 parent cc711c3 commit 3822dd1

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

Jenkinsfile

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,32 @@ pipeline {
2222
stage ('Build') {
2323
steps {
2424
sh '''
25-
mvn -B -DskipTests -Dunit-test-wlst-dir=${WLST_DIR} clean package
25+
mvn -B -DskipTests clean package
2626
'''
2727
}
2828
}
29-
stage ('Verify') {
29+
stage ('Test') {
3030
steps {
31-
sh 'mvn -Dunit-test-wlst-dir=${WLST_DIR} -Dmw_home=${ORACLE_HOME} verify'
31+
sh 'mvn -Dunit-test-wlst-dir=${WLST_DIR} test'
3232
}
3333
post {
3434
always {
3535
junit 'core/target/surefire-reports/*.xml'
3636
}
3737
}
3838
}
39+
stage ('Verify') {
40+
when {
41+
changeRequest()
42+
}
43+
steps {
44+
sh 'mvn -P system-test -Dmw_home=${ORACLE_HOME} test-compile failsafe:integration-test'
45+
}
46+
post {
47+
always {
48+
junit 'system-test/target/failsafe-reports/*.xml'
49+
}
50+
}
51+
}
3952
}
4053
}

0 commit comments

Comments
 (0)