Mount .boto when dumping all logs 42/69442/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 23 Dec 2019 18:53:55 +0000 (19:53 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 23 Dec 2019 18:53:55 +0000 (19:53 +0100)
It fixes the current issue [1].

[1] https://build.opnfv.org/ci/job/airship-latest-zip/2/console

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

index 3c1a7da..0767159 100644 (file)
     builders:
       - shell: |
           set +x
-          [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
+          [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
           if [ "{repo}" = "_" ]; then
             image={container}:{functest_tag}
           elif [ "{port}" = "None" ]; then
             -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
             -e BUILD_TAG=$BUILD_TAG \
             -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
+            -v /home/opnfv/functest/.boto:/root/.boto \
             $image zip_campaign
 
 - job-template:
index 2d46a6a..98d0ae3 100644 (file)
     builders:
       - shell: |
           set +x
-          [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
+          [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
           if [ "{repo}" = "_" ]; then
             image={container}:{functest_tag}
           elif [ "{port}" = "None" ]; then
             -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
             -e BUILD_TAG=$BUILD_TAG \
             -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
+            -v /home/opnfv/functest/.boto:/root/.boto \
             $image zip_campaign
 
 - job-template: