From 84454bdd92f934e4de4a75dc2d6e8c4154227d49 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sun, 7 Apr 2024 05:03:45 +0200 Subject: upload tests --- .scripts.d/30-test.sh | 4 +++- Jenkinsfile | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.scripts.d/30-test.sh b/.scripts.d/30-test.sh index 4ec890d..26ad3f8 100644 --- a/.scripts.d/30-test.sh +++ b/.scripts.d/30-test.sh @@ -15,6 +15,7 @@ curl -fsSL https://goss.rocks/install | sh export GOSS_SLEEP=${GOSS_SLEEP:-5} export GOSS_VARS=${GOSS_VARS:-} +export GOSS_OPTS="--format junit --no-color" export CONTAINER_LOG_OUTPUT=${CONTAINER_LOG_OUTPUT:-} # The default 'mount' strategy uses 'sleep infinity' to keep @@ -27,4 +28,5 @@ fi goss --gossfile goss.yaml render >goss-full.yaml mv goss-full.yaml goss.yaml -dgoss run "chn2guevara/languagetool:${BUILD_ID}" +mkdir -p build/reports/ +dgoss run "chn2guevara/languagetool:${BUILD_ID}" > build/reports/goss.xml diff --git a/Jenkinsfile b/Jenkinsfile index e589dd4..ce6bb7f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,4 +21,5 @@ pipeline { steps { sh 'bash .scripts.d/40-publish.sh' } } } + post { always { junit 'build/reports/*.xml' } } } -- cgit v1.2.3