Clean Xtesting logs as privileged 37/66137/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 2 Jan 2019 13:49:49 +0000 (14:49 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 2 Jan 2019 13:51:03 +0000 (14:51 +0100)
It also mutes gsutils and precises Xtesting view regex.

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

index 46568db..f1cdd10 100644 (file)
@@ -62,7 +62,7 @@
     builders:
       - shell: |
           set +ex
-          [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
+          [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
           if [ "{port}" = "None" ]; then
             image={repo}/{container}:{tag}
           else
@@ -73,7 +73,7 @@
             $image run_tests -t {test}
           res=$?
           gsutil -m cp -r $WORKSPACE/ \
-            gs://artifacts.opnfv.org/xtesting/$JOB_NAME-$BUILD_ID > /dev/null
+            gs://artifacts.opnfv.org/xtesting/$JOB_NAME-$BUILD_ID > /dev/null 2>&1
           find $WORKSPACE -type f \
             -printf \
             "http://artifacts.opnfv.org/xtesting/$JOB_NAME-$BUILD_ID/%P\n"
       - last-success
       - last-failure
       - last-duration
-    regex: xtesting-.*
+    regex: ^xtesting-[a-z0-9]*$