Skip to content

Commit b6e64a6

Browse files
committed
Jenkins: Execute integration tests
1 parent 75599b7 commit b6e64a6

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Jenkinsfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!groovy
2-
@Library('github.com/cloudogu/ces-build-lib@888733b')
2+
@Library('github.com/cloudogu/ces-build-lib@d207c94')
33
import com.cloudogu.ces.cesbuildlib.*
44

55
node {
@@ -33,7 +33,11 @@ node {
3333
}
3434

3535
stage('Unit Test') {
36-
mvn "test"
36+
mvn 'test'
37+
}
38+
39+
stage('Integration Test') {
40+
mvn 'verify -DskipUnitTests'
3741
}
3842
}
3943

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
<sonar.sources>src/main/groovy</sonar.sources>
8282
<sonar.groovy.jacoco.reportPath>target/jacoco.exec</sonar.groovy.jacoco.reportPath>
8383
<sonar.groovy.jacoco.itReportPath>target/jacoco-it.exec</sonar.groovy.jacoco.itReportPath>
84+
85+
<!-- Possibility to skip only the unit test. Can be useful when running only integration tests.
86+
This can be used from the command line as follows: mvn <goals> -DskipUnitTests -->
87+
<skipUnitTests>${skipTests}</skipUnitTests>
8488
</properties>
8589

8690
<scm>
@@ -171,6 +175,9 @@
171175
<includes>
172176
<include>**/*Test</include>
173177
</includes>
178+
<!-- skips surefire tests without skipping failsafe tests.
179+
Property value seems to magically default to false -->
180+
<skipTests>${skipUnitTests}</skipTests>
174181
</configuration>
175182
</plugin>
176183

0 commit comments

Comments
 (0)