summaryrefslogtreecommitdiffstats
path: root/jjb/airship
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-11-24 07:25:04 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-11-24 07:25:04 +0100
commit714db901681e8218931a40a899190fc121a7879c (patch)
tree8f53b6d423abfb51507553872a7d0f0697b41ff5 /jjb/airship
parent34b2e22e94475d178d276933d332bdc0d2772e96 (diff)
Leverage on S3 support proposed by Xtesting
Change-Id: I69b85eb4f48f485aff0aac65eac25a1e7475cc27 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb/airship')
-rw-r--r--jjb/airship/airship.yaml16
-rw-r--r--jjb/airship/cntt.yaml16
2 files changed, 14 insertions, 18 deletions
diff --git a/jjb/airship/airship.yaml b/jjb/airship/airship.yaml
index c07cb4fd5..48c7a1135 100644
--- a/jjb/airship/airship.yaml
+++ b/jjb/airship/airship.yaml
@@ -50,7 +50,7 @@
name: airship-run-containers
builders:
- shell: |
- set +ex
+ set +x
[ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
if [ "{repo}" = "_" ]; then
image={container}:{functest_tag}
@@ -60,10 +60,15 @@
image={repo}:{port}/{container}:{functest_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 \
-e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
+ -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
-e NODE_NAME=$slave \
-e INSTALLER_TYPE=airship \
-v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
+ -v /home/opnfv/functest/.boto:/root/.boto \
-e DEBUG=True \
-e EXTERNAL_NETWORK=public \
-e DEPLOY_SCENARIO=os-nosdn-nofeature-ha \
@@ -71,14 +76,7 @@
-v /home/opnfv/functest/images:/home/opnfv/functest/images \
-v /home/opnfv/functest/tempest_conf.yaml:/usr/lib/python2.7/\
site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml \
- $image run_tests -t {test} -r
- res=$?
- gsutil -m cp -r $WORKSPACE/ \
- gs://artifacts.opnfv.org/airship/$JOB_NAME-$BUILD_ID > /dev/null 2>&1
- find $WORKSPACE -type f \
- -printf \
- "http://artifacts.opnfv.org/airship/$JOB_NAME-$BUILD_ID/%P\n"
- exit $res
+ $image run_tests -t {test} -r -p
- builder:
name: airship-remove-images
diff --git a/jjb/airship/cntt.yaml b/jjb/airship/cntt.yaml
index 275cb4f2e..859a7773d 100644
--- a/jjb/airship/cntt.yaml
+++ b/jjb/airship/cntt.yaml
@@ -50,7 +50,7 @@
name: cntt-run-containers
builders:
- shell: |
- set +ex
+ set +x
[ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
if [ "{repo}" = "_" ]; then
image={container}:{functest_tag}
@@ -60,10 +60,15 @@
image={repo}:{port}/{container}:{functest_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 \
-e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
+ -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
-e NODE_NAME=$slave \
-e INSTALLER_TYPE=cntt \
-v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
+ -v /home/opnfv/functest/.boto:/root/.boto \
-e DEBUG=True \
-e EXTERNAL_NETWORK=public \
-e DEPLOY_SCENARIO=os-nosdn-nofeature-ha \
@@ -71,14 +76,7 @@
-v /home/opnfv/functest/images:/home/opnfv/functest/images \
-v /home/opnfv/functest/tempest_conf.yaml:/usr/lib/python2.7/\
site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml \
- $image run_tests -t {test} -r
- res=$?
- gsutil -m cp -r $WORKSPACE/ \
- gs://artifacts.opnfv.org/cntt/$JOB_NAME-$BUILD_ID > /dev/null 2>&1
- find $WORKSPACE -type f \
- -printf \
- "http://artifacts.opnfv.org/cntt/$JOB_NAME-$BUILD_ID/%P\n"
- exit $res
+ $image run_tests -t {test} -r -p
- builder:
name: cntt-remove-images