Skip to content

Commit e0ec3da

Browse files
committed
Split slow and integration tests
Fix typo in integration test commit status message.
1 parent 64ee7a1 commit e0ec3da

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

.jenkins/Jenkinsfile

+28-3
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pipeline {
112112
}
113113
}
114114
parallel {
115-
stage('Run slow unit tests and integration tests') {
115+
stage('Run slow unit tests') {
116116
when {
117117
anyOf {
118118
branch 'hotfix-*'
@@ -121,15 +121,40 @@ pipeline {
121121
}
122122
}
123123
steps {
124-
setBuildStatus "Integration tests", "Integration tests #${env.BUILD_NUMBER} have started...", 'PENDING'
124+
setBuildStatus "Slow tests", "Slow tests for #${env.BUILD_NUMBER} have started...", 'PENDING'
125125
sh 'mvn -B test -Dgroups=SlowTest'
126+
}
127+
post {
128+
always {
129+
junit testResults: '**/target/surefire-reports/*.xml'
130+
}
131+
success {
132+
setBuildStatus "Slow tests", "Slow tests for build #${env.BUILD_NUMBER} have passed.", 'SUCCESS'
133+
}
134+
failure {
135+
setBuildStatus "Slow tests", "Slow tests for build #${env.BUILD_NUMBER} failed.", 'ERROR'
136+
}
137+
unstable {
138+
setBuildStatus "Slow tests", "Slow tests for build #${env.BUILD_NUMBER} failed.", 'FAILURE'
139+
}
140+
}
141+
}
142+
stage('Run integration tests') {
143+
when {
144+
anyOf {
145+
branch 'hotfix-*'
146+
branch 'release-*'
147+
branch 'development'
148+
}
149+
}
150+
steps {
151+
setBuildStatus "Integration tests", "Integration tests for build #${env.BUILD_NUMBER} have started...", 'PENDING'
126152
lock('database/' + testdbUrl) {
127153
sh 'mvn -B verify -DskipUnitTests'
128154
}
129155
}
130156
post {
131157
always {
132-
junit testResults: '**/target/surefire-reports/*.xml'
133158
junit testResults: '**/target/failsafe-reports/*.xml'
134159
}
135160
success {

0 commit comments

Comments
 (0)