Commit e0ec3da 1 parent 64ee7a1 commit e0ec3da Copy full SHA for e0ec3da
File tree 1 file changed +28
-3
lines changed
1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ pipeline {
112
112
}
113
113
}
114
114
parallel {
115
- stage(' Run slow unit tests and integration tests ' ) {
115
+ stage(' Run slow unit tests' ) {
116
116
when {
117
117
anyOf {
118
118
branch ' hotfix-*'
@@ -121,15 +121,40 @@ pipeline {
121
121
}
122
122
}
123
123
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'
125
125
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'
126
152
lock(' database/' + testdbUrl) {
127
153
sh ' mvn -B verify -DskipUnitTests'
128
154
}
129
155
}
130
156
post {
131
157
always {
132
- junit testResults : ' **/target/surefire-reports/*.xml'
133
158
junit testResults : ' **/target/failsafe-reports/*.xml'
134
159
}
135
160
success {
You can’t perform that action at this time.
0 commit comments