From 5730b82fe0980811c1f25eee126bcf7030f0c3aa Mon Sep 17 00:00:00 2001 From: dkhandel Date: Fri, 3 Aug 2018 11:56:14 +0530 Subject: Add the publisher to archive the generated logs Line coverage job does not provide the generated logs. Added another publisher parameter i.e. 'archive' to build artifacts of regression and smoke testing Change-Id: Idee7dc99ae43d158036ae883f4def418af0f089f --- build-gluster-org/jobs/lcov.yml | 6 ++++++ build-gluster-org/scripts/lcov.sh | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/build-gluster-org/jobs/lcov.yml b/build-gluster-org/jobs/lcov.yml index 0e7b07d..1a15d39 100644 --- a/build-gluster-org/jobs/lcov.yml +++ b/build-gluster-org/jobs/lcov.yml @@ -33,6 +33,12 @@ - log-text: Building remotely script: | sudo chown -R jenkins:jenkins $WORKSPACE + - archive: + allow-empty: true + artifacts: "*-glusterfs-logs.tgz" + default-excludes: true + fingerprint: false + only-if-success: false parameters: - string: diff --git a/build-gluster-org/scripts/lcov.sh b/build-gluster-org/scripts/lcov.sh index 6de3dc1..d8b239b 100644 --- a/build-gluster-org/scripts/lcov.sh +++ b/build-gluster-org/scripts/lcov.sh @@ -37,11 +37,13 @@ lcov -i -c -d . -o coverage/glusterfs-lcov.info set +e echo "Running the regression test" -sudo -E bash /opt/qa/regression.sh -c +sudo -E bash /opt/qa/regression.sh -ci +mv glusterfs-logs.tgz regression-glusterfs-logs.tgz REGRESSION_STATUS=$? echo "Running the smoke tests" sudo -E bash /opt/qa/smoke.sh -c +mv glusterfs-logs.tgz smoke-glusterfs-logs.tgz SMOKE_STATUS=$? echo "Capturing the line coverage in the .info file" -- cgit