Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 4cb441b

Browse files
author
Ian Campbell
committed
ci: munge "github.com/docker/app" to "docker-app" in junit files
Jenkins interprets the default as nested folders `github` → `com/docker/app` (presumably due to thinking it is using Java style naming). In gotestyourself/gotestsum#50 I requested support for something in `gotestsum` itself but for now this will do. Signed-off-by: Ian Campbell <ijc@docker.com>
1 parent d616bbb commit 4cb441b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ pipeline {
115115
}
116116
post {
117117
always {
118+
sh 'sed -i -E -e \'s,"github.com/docker/app([^"]*)","docker-app\\1",g\' src/github.com/docker/app/_build/test-results/*.xml'
118119
archiveArtifacts 'src/github.com/docker/app/_build/test-results/*.xml'
119120
junit 'src/github.com/docker/app/_build/test-results/*.xml'
120121
sh 'docker rmi docker/cnab-app-base:$BUILD_TAG-coverage'

Jenkinsfile.baguette

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ pipeline {
101101
}
102102
post {
103103
always {
104+
sh 'sed -i -E -e \'s,"github.com/docker/app([^"]*)","docker-app\\1",g\' src/github.com/docker/app/_build/test-results/*.xml'
104105
archiveArtifacts 'src/github.com/docker/app/_build/test-results/*.xml'
105106
junit 'src/github.com/docker/app/_build/test-results/*.xml'
106107
sh 'docker rmi docker/cnab-app-base:$BUILD_TAG-coverage'

0 commit comments

Comments
 (0)