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>
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"