From 9d56171a2dbaa3992a455c741ac55da952b5d100 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 15 Jul 2019 15:34:15 -0400 Subject: [PATCH] jjb: babeltrace: Add test suite logs to archived artefacts Signed-off-by: Michael Jeanson --- jobs/babeltrace.yaml | 10 ++++++++-- scripts/babeltrace/build.sh | 12 +++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/jobs/babeltrace.yaml b/jobs/babeltrace.yaml index 4101815..d5df88a 100644 --- a/jobs/babeltrace.yaml +++ b/jobs/babeltrace.yaml @@ -165,6 +165,9 @@ total-high: 0 total-normal: 0 total-low: 0 + - archive: + artifacts: 'tap/**' + allow-empty: false - email-ext: recipients: '{obj:email_to}' always: false @@ -205,7 +208,7 @@ total-normal: 0 total-low: 0 - archive: - artifacts: 'build/**' + artifacts: 'build/**,tap/**' allow-empty: false - email-ext: recipients: '{obj:email_to}' @@ -247,7 +250,7 @@ total-normal: 0 total-low: 0 - archive: - artifacts: 'build/**' + artifacts: 'build/**,tap/**' allow-empty: false @@ -515,6 +518,9 @@ cron: "@daily" <<: *babeltrace_version_glib-2-22-5_anchor publishers: + - archive: + artifacts: 'tap/**' + allow-empty: false - email-ext: recipients: '{obj:email_to}' reply-to: ci-notification@lists.lttng.org diff --git a/scripts/babeltrace/build.sh b/scripts/babeltrace/build.sh index 71ee6c5..9a5a29a 100755 --- a/scripts/babeltrace/build.sh +++ b/scripts/babeltrace/build.sh @@ -1,7 +1,7 @@ #!/bin/bash -exu # -# Copyright (C) 2015 - Jonathan Rajotte-Julien -# 2016 - Michael Jeanson +# Copyright (C) 2015 Jonathan Rajotte-Julien +# 2016-2019 Michael Jeanson # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -298,8 +298,11 @@ esac $MAKE -j "$($NPROC)" V=1 $MAKE install -# Run tests +# Run tests, don't fail now, we want to run the archiving steps +set +e $MAKE --keep-going check +ret=$? +set -e # Copy tap logs for the jenkins tap parser rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$WORKSPACE/tap" @@ -320,4 +323,7 @@ if [ "$build" = "dist" ]; then rm -rf "$BUILD_PATH" fi +# Exit with the return code of the test suite +exit $ret + # EOF -- 2.34.1