summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-12-22 21:54:18 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-12-22 21:54:18 +0100
commita8e79f002b51f51c764d40e06ce8ea477167aec9 (patch)
treee2ec19ec1400ac375eea0ef4875333b0979a1717 /jjb
parent3e2f49891990dfd9ac4a0a86294f6bb1c1529170 (diff)
Dump all artifacts as last steps
Change-Id: I55497311520f7fc2583bfa36fb1cb595cf5f1fff Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/functest/functest.yaml48
1 files changed, 47 insertions, 1 deletions
diff --git a/jjb/functest/functest.yaml b/jjb/functest/functest.yaml
index 318549e85..249c1d582 100644
--- a/jjb/functest/functest.yaml
+++ b/jjb/functest/functest.yaml
@@ -140,6 +140,8 @@
-e S3_ENDPOINT_URL=https://storage.googleapis.com \
-e S3_DST_URL=s3://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
-e HTTP_DST_URL=http://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
+ -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
+ -e NODE_NAME=$slave \
-e BUILD_TAG=$BUILD_TAG \
-v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
-e DEBUG=$DEBUG \
@@ -151,7 +153,7 @@
site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/\
blacklist.yaml \
-v /home/opnfv/functest/.boto:/root/.boto \
- $image run_tests -t {test} -p
+ $image run_tests -t {test} -r -p
- builder:
name: functest-remove-images
@@ -385,6 +387,45 @@
jobs:
- 'functest-{repo}-{container}-{tag}-{test}-run'
+- builder:
+ name: functest-zip
+ builders:
+ - shell: |
+ set +x
+ [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
+ if [ "{repo}" = "_" ]; then
+ image={container}:{tag}
+ elif [ "{port}" = "None" ]; then
+ image={repo}/{container}:{tag}
+ else
+ 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/functest \
+ -e HTTP_DST_URL=http://artifacts.opnfv.org/functest \
+ -e TEST_DB_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:
+ name: 'functest-{tag}-zip'
+ parameters:
+ - functest-build_tag:
+ build_tag: ''
+ builders:
+ - functest-zip:
+ <<: *functest-containers
+
+- project:
+ name: 'functest-{tag}-zip'
+ <<: *functest-params
+ container: 'healthcheck'
+ jobs:
+ - 'functest-{tag}-zip'
+
- job-template:
name: 'functest-{tag}-daily'
project-type: multijob
@@ -540,6 +581,11 @@
<<: *functest-jobs
- name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run'
<<: *functest-jobs
+ - multijob:
+ name: dump all campaign data
+ projects:
+ - name: 'functest-{tag}-zip'
+ <<: *functest-jobs
- job-template:
name: 'functest-{repo}-{container}-{tag}-gate'