@@ -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