Clean functest-kubernetes jjb 50/68150/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Fri, 28 Jun 2019 07:58:12 +0000 (09:58 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 28 Jun 2019 08:05:28 +0000 (10:05 +0200)
It removes all debug data added by "Add debugs when calling gsutil"
[1] and "Print debug infos in functest-kubernetes jjbs" [2]

The issue came from former data dirs in http://artifacts.opnfv.org/
which changes logics [3]. All kubernetes latest results were removed
to solve the issues.

[1] https://gerrit.opnfv.org/gerrit/#/c/68145/
[2] https://gerrit.opnfv.org/gerrit/#/c/68113/
[3] https://cloud.google.com/storage/docs/gsutil/commands/cp

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

index 427ccc2..5bfa717 100644 (file)
@@ -90,8 +90,7 @@
     name: functest-kubernetes-run-containers
     builders:
       - shell: |
-          set +e
-          set -x
+          set +ex
           [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
           if [ "{repo}" = "_" ]; then
             image={container}:{tag}
             -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
             $image run_tests -t {test}
           res=$?
-          gsutil -dd -m cp -r $WORKSPACE/ \
-            gs://artifacts.opnfv.org/functest-kubernetes/$JOB_NAME-$BUILD_ID
+          gsutil -m cp -r $WORKSPACE/ \
+            gs://artifacts.opnfv.org/functest-kubernetes/$JOB_NAME-$BUILD_ID > /dev/null 2>&1
           find $WORKSPACE -type f \
             -printf \
             "http://artifacts.opnfv.org/functest-kubernetes/$JOB_NAME-$BUILD_ID/%P\n"