summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkhandel <dkhandel@localhost.localdomain>2018-08-03 11:56:14 +0530
committerNigel Babu <nigelb@redhat.com>2018-08-06 05:28:46 +0000
commit5730b82fe0980811c1f25eee126bcf7030f0c3aa (patch)
treee5a395671383bd5ce27a56738edf1e00ed0555bf
parent55b1950a87738bb059d2db8d0ada43248ade5a08 (diff)
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
-rw-r--r--build-gluster-org/jobs/lcov.yml6
-rw-r--r--build-gluster-org/scripts/lcov.sh4
2 files changed, 9 insertions, 1 deletions
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"