From 5b57a44fd50ae4d82673869a1cb9e1b121004646 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 1 Apr 2019 16:29:58 +0100 Subject: [PATCH] ci: munge "github.com/docker/app" to "docker-app" in junit files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Jenkins interprets the default as nested folders `github` → `com/docker/app` (presumably due to thinking it is using Java style naming). In https://github.com/gotestyourself/gotestsum/issues/50 I requested support for something in `gotestsum` itself but for now this will do. Signed-off-by: Ian Campbell --- Jenkinsfile | 1 + Jenkinsfile.baguette | 1 + 2 files changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 59d2fcaa5..b2ac6d873 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -115,6 +115,7 @@ pipeline { } post { always { + sh 'sed -E -e 's,"github.com/docker/app([^"]*)","docker-app\1",g' _build/test-results/*' junit 'src/github.com/docker/app/_build/test-results/*.xml' sh 'docker rmi docker/cnab-app-base:$BUILD_TAG-coverage' deleteDir() diff --git a/Jenkinsfile.baguette b/Jenkinsfile.baguette index b68c019c0..77b5f1e00 100644 --- a/Jenkinsfile.baguette +++ b/Jenkinsfile.baguette @@ -101,6 +101,7 @@ pipeline { } post { always { + sh 'sed -E -e 's,"github.com/docker/app([^"]*)","docker-app\1",g' _build/test-results/*' junit 'src/github.com/docker/app/_build/test-results/*.xml' sh 'docker rmi docker/cnab-app-base:$BUILD_TAG-coverage' deleteDir()