@@ -73,15 +73,21 @@ pipeline {
7373 dir(' src/github.com/docker/app' ) {
7474 checkout scm
7575 sh ' make -f docker.Makefile save-invocation-image'
76+ sh ' make -f docker.Makefile INVOCATION_IMAGE_TAG=$BUILD_TAG-coverage OUTPUT=coverage-invocation-image.tar save-invocation-image-tag'
77+ sh ' make -f docker.Makefile INVOCATION_IMAGE_TAG=$BUILD_TAG-coverage-experimental OUTPUT=coverage-experimental-invocation-image.tar save-invocation-image-tag'
7678 dir(' _build' ) {
7779 stash name : ' invocation-image' , includes : ' invocation-image.tar'
80+ stash name : ' coverage-invocation-image' , includes : ' coverage-invocation-image.tar'
81+ stash name : ' coverage-experimental-invocation-image' , includes : ' coverage-experimental-invocation-image.tar'
7882 }
7983 }
8084 }
8185 post {
8286 always {
8387 dir(' src/github.com/docker/app' ) {
8488 sh ' docker rmi docker/cnab-app-base:$BUILD_TAG'
89+ sh ' docker rmi docker/cnab-app-base:$BUILD_TAG-coverage'
90+ sh ' docker rmi docker/cnab-app-base:$BUILD_TAG-coverage-experimental'
8591 }
8692 deleteDir()
8793 }
@@ -99,16 +105,17 @@ pipeline {
99105 dir(' src/github.com/docker/app' ) {
100106 checkout scm
101107 dir(' _build' ) {
102- unstash " invocation-image"
103- sh ' docker load -i invocation-image.tar'
108+ unstash " coverage- invocation-image"
109+ sh ' docker load -i coverage- invocation-image.tar'
104110 }
105- sh ' make -f docker.Makefile coverage'
111+ sh ' make -f docker.Makefile BUILD_TAG=$BUILD_TAG-coverage coverage'
106112 archiveArtifacts ' _build/ci-cov/all.out'
107113 archiveArtifacts ' _build/ci-cov/coverage.html'
108114 }
109115 }
110116 post {
111117 always {
118+ sh ' docker rmi docker/cnab-app-base:$BUILD_TAG-coverage'
112119 deleteDir()
113120 }
114121 }
@@ -121,14 +128,15 @@ pipeline {
121128 dir(' src/github.com/docker/app' ) {
122129 checkout scm
123130 dir(' _build' ) {
124- unstash " invocation-image"
125- sh ' docker load -i invocation-image.tar'
131+ unstash " coverage-experimental- invocation-image"
132+ sh ' docker load -i coverage-experimental- invocation-image.tar'
126133 }
127- sh ' make EXPERIMENTAL=on -f docker.Makefile coverage'
134+ sh ' make EXPERIMENTAL=on -f docker.Makefile BUILD_TAG=$BUILD_TAG-coverage-experimental coverage'
128135 }
129136 }
130137 post {
131138 always {
139+ sh ' docker rmi docker/cnab-app-base:$BUILD_TAG-coverage-experimental'
132140 deleteDir()
133141 }
134142 }
0 commit comments