Skip to content

Commit dd94ef8

Browse files
committed
[WIP] adds temporary "short" test stage to investigate why remote caching doesn't work on CI
1 parent cb81dbf commit dd94ef8

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

Jenkinsfile

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,26 +92,31 @@ pipeline {
9292
sh 'mvn -U -B -e clean install -DskipTests -Djib.skip -T1C ${MVN_SHOW_TIMESTAMPS} ${MVN_LOCAL_REPO_OPT}'
9393
}
9494
}
95-
96-
stage('Stable Tests') {
95+
stage('Cache Tests') {
9796
steps {
9897
echo 'Running tests'
99-
sh 'mvn -B -e -fae clean test ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true jacoco:report-aggregate@jacoco-report'
100-
}
101-
post {
102-
always {
103-
junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: false)
104-
junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
105-
}
106-
success {
107-
archiveArtifacts artifacts: 'code-coverage-report/target/jacoco/**/*' , fingerprint: true, allowEmptyArchive: true
108-
}
109-
failure {
110-
archiveArtifacts artifacts: '**/target/test-run.log' , fingerprint: true
111-
archiveArtifacts artifacts: '**/surefire-reports/*' , fingerprint: true
112-
}
98+
sh 'mvn -B -e -fae clean test ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true jacoco:report-aggregate@jacoco-report -pl :event-sourcing-pojo -am'
11399
}
114100
}
101+
// stage('Stable Tests') {
102+
// steps {
103+
// echo 'Running tests'
104+
// sh 'mvn -B -e -fae clean test ${MVN_SHOW_TIMESTAMPS} -P ci-test ${MVN_LOCAL_REPO_OPT} -Dassembly.skipAssembly=true jacoco:report-aggregate@jacoco-report'
105+
// }
106+
// post {
107+
// always {
108+
// junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: false)
109+
// junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
110+
// }
111+
// success {
112+
// archiveArtifacts artifacts: 'code-coverage-report/target/jacoco/**/*' , fingerprint: true, allowEmptyArchive: true
113+
// }
114+
// failure {
115+
// archiveArtifacts artifacts: '**/target/test-run.log' , fingerprint: true
116+
// archiveArtifacts artifacts: '**/surefire-reports/*' , fingerprint: true
117+
// }
118+
// }
119+
// }
115120

116121
stage('Unstable Tests') {
117122
steps {

0 commit comments

Comments
 (0)