Finish Airship test jobs 04/68504/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Thu, 19 Sep 2019 20:35:10 +0000 (22:35 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 19 Sep 2019 20:40:06 +0000 (22:40 +0200)
It removes all debug data as all logs are now well published [1] and
results pushed to DB [2].

It should be noted that the two agents are configured with
/home/jenkins/opnfv/slave_root/workspace instead of
/home/jenkins-ci/workspace (see Functest Kubernetes slaves).

[1] http://testresults.opnfv.org/test/api/v1/results?installer=airship&last=1
[2] http://artifacts.opnfv.org/airship/airship-opnfv-functest-healthcheck-hunter-connection_check-run-7/results/functest.log

Change-Id: I103bd68eb62bb5bf9c13a1f706ddf0528f874542
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
jjb/airship/airship.yaml

index 5b39975..ef0b395 100644 (file)
@@ -56,8 +56,7 @@
     name: airship-run-containers
     builders:
       - shell: |
-          set +e
-          set -x
+          set +ex
           [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
           if [ "{repo}" = "_" ]; then
             image={container}:{tag}
@@ -66,7 +65,6 @@
           else
             image={repo}:{port}/{container}:{tag}
           fi
-          echo $WORKSPACE
           docker run --rm \
             -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
             -e NODE_NAME=intel-pod17 \
@@ -81,7 +79,7 @@
             $image run_tests -t {test} -r
           res=$?
           gsutil -m cp -r $WORKSPACE/ \
-            gs://artifacts.opnfv.org/airship/$JOB_NAME-$BUILD_ID
+            gs://artifacts.opnfv.org/airship/$JOB_NAME-$BUILD_ID > /dev/null 2>&1
           find $WORKSPACE -type f \
             -printf \
             "http://artifacts.opnfv.org/airship/$JOB_NAME-$BUILD_ID/%P\n"