Commit 84692c7 1 parent 64ee7a1 commit 84692c7 Copy full SHA for 84692c7
File tree 1 file changed +30
-3
lines changed
1 file changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -112,24 +112,51 @@ 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
+ branch ' master'
118
119
branch ' hotfix-*'
119
120
branch ' release-*'
120
121
branch ' development'
121
122
}
122
123
}
123
124
steps {
124
- setBuildStatus " Integration tests" , " Integration tests #${ env.BUILD_NUMBER} have started..." , ' PENDING'
125
+ setBuildStatus " Slow tests" , " Slow tests for #${ env.BUILD_NUMBER} have started..." , ' PENDING'
125
126
sh ' mvn -B test -Dgroups=SlowTest'
127
+ }
128
+ post {
129
+ always {
130
+ junit testResults : ' **/target/surefire-reports/*.xml'
131
+ }
132
+ success {
133
+ setBuildStatus " Slow tests" , " Slow tests for build #${ env.BUILD_NUMBER} have passed." , ' SUCCESS'
134
+ }
135
+ failure {
136
+ setBuildStatus " Slow tests" , " Slow tests for build #${ env.BUILD_NUMBER} failed." , ' ERROR'
137
+ }
138
+ unstable {
139
+ setBuildStatus " Slow tests" , " Slow tests for build #${ env.BUILD_NUMBER} failed." , ' FAILURE'
140
+ }
141
+ }
142
+ }
143
+ stage(' Run integration tests' ) {
144
+ when {
145
+ anyOf {
146
+ branch ' master'
147
+ branch ' hotfix-*'
148
+ branch ' release-*'
149
+ branch ' development'
150
+ }
151
+ }
152
+ steps {
153
+ setBuildStatus " Integration tests" , " Integration tests for build #${ env.BUILD_NUMBER} have started..." , ' PENDING'
126
154
lock(' database/' + testdbUrl) {
127
155
sh ' mvn -B verify -DskipUnitTests'
128
156
}
129
157
}
130
158
post {
131
159
always {
132
- junit testResults : ' **/target/surefire-reports/*.xml'
133
160
junit testResults : ' **/target/failsafe-reports/*.xml'
134
161
}
135
162
success {
You can’t perform that action at this time.
0 commit comments