summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-11-14 19:31:24 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-11-14 19:31:24 +0100
commitc6e40603d8e326753bb47ed04df496629fd88b56 (patch)
tree768e0795753a1e49bfae356d210a1a28fa1165c6 /jjb
parent5c75d372ebd4d090748c1f7cb8b1847652c6be6c (diff)
Leverage on S3 support in Xtesting
It avoids using gsutil in Jenkins (extra logics). Change-Id: I0494875883436da5846d99e1088812793c46af72 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/functest/xtesting.yaml15
1 files changed, 6 insertions, 9 deletions
diff --git a/jjb/functest/xtesting.yaml b/jjb/functest/xtesting.yaml
index cc9ec07ba..6a9161497 100644
--- a/jjb/functest/xtesting.yaml
+++ b/jjb/functest/xtesting.yaml
@@ -93,7 +93,7 @@
name: xtesting-run-containers
builders:
- shell: |
- set +ex
+ set +x
[ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
if [ "{repo}" = "_" ]; then
image={container}:{tag}
@@ -103,16 +103,13 @@
image={repo}:{port}/{container}:{tag}
fi
sudo docker run --rm \
+ -e S3_ENDPOINT_URL=https://storage.googleapis.com \
+ -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$JOB_NAME-$BUILD_ID \
+ -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$JOB_NAME-$BUILD_ID \
-v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
+ -v /home/opnfv/xtesting/.boto:/root/boto \
-e DEBUG=true \
- $image run_tests -t {test}
- res=$?
- gsutil -m cp -r $WORKSPACE/ \
- 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"
- exit $res
+ $image run_tests -t {test} -p
- builder:
name: xtesting-remove-images