Change-Id: I6c96b3d020e45e1fba64340616e689923e140ead
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
name: branch
default: '{branch}'
name: branch
default: '{branch}'
+- parameter:
+ name: xtesting-DEBUG
+ parameters:
+ - string:
+ name: DEBUG
+ default: 'true'
+
- xtesting-containers: &xtesting-containers
name: 'xtesting-containers'
repo: '{repo}'
- xtesting-containers: &xtesting-containers
name: 'xtesting-containers'
repo: '{repo}'
tag: '{tag}'
- xtesting-run-containers: &xtesting-run-containers
tag: '{tag}'
- xtesting-run-containers: &xtesting-run-containers
- name: 'xtesting-build-containers'
+ name: 'xtesting-run-containers'
<<: *xtesting-containers
test: '{test}'
<<: *xtesting-containers
test: '{test}'
-e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
-e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
-e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
-e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
-e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$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 BUILD_TAG=$BUILD_TAG \
-v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
-e NODE_NAME=$slave \
-e BUILD_TAG=$BUILD_TAG \
-v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
-v /home/opnfv/xtesting/.boto:/root/.boto \
-v /home/opnfv/xtesting/.boto:/root/.boto \
- -e DEBUG=true \
- $image run_tests -t {test} -r -p
+ $image run_tests -t {test} -p -r
- builder:
name: xtesting-remove-images
- builder:
name: xtesting-remove-images
slave: '{slave}'
- xtesting-build_tag:
build_tag: ''
slave: '{slave}'
- xtesting-build_tag:
build_tag: ''
+ - xtesting-DEBUG:
+ DEBUG: 'true'
builders:
- xtesting-run-containers:
<<: *xtesting-run-containers
builders:
- xtesting-run-containers:
<<: *xtesting-run-containers
jobs:
- 'xtesting-{repo}-{container}-{tag}-{test}-run'
jobs:
- 'xtesting-{repo}-{container}-{tag}-{test}-run'
- builder:
name: xtesting-zip
builders:
- shell: |
set +x
- builder:
name: xtesting-zip
builders:
- shell: |
set +x
- [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
+ [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
if [ "{repo}" = "_" ]; then
image={container}:{tag}
elif [ "{port}" = "None" ]; then
if [ "{repo}" = "_" ]; then
image={container}:{tag}
elif [ "{port}" = "None" ]; then
-e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
-e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
-e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
-e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
-e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
-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 BUILD_TAG=$BUILD_TAG \
-v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
-e BUILD_TAG=$BUILD_TAG \
-v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
-v /home/opnfv/xtesting/.boto:/root/.boto \
$image zip_campaign
- job-template:
name: 'xtesting-{tag}-zip'
parameters:
-v /home/opnfv/xtesting/.boto:/root/.boto \
$image zip_campaign
- job-template:
name: 'xtesting-{tag}-zip'
parameters:
+ - xtesting-slave:
+ slave: '{slave}'
- xtesting-build_tag:
build_tag: ''
- xtesting-build_tag:
build_tag: ''
+ - xtesting-DEBUG:
+ DEBUG: 'true'
builders:
- xtesting-zip:
<<: *xtesting-containers
builders:
- xtesting-zip:
<<: *xtesting-containers
slave: '{slave}'
- xtesting-build_tag:
build_tag: ''
slave: '{slave}'
- xtesting-build_tag:
build_tag: ''
+ - xtesting-DEBUG:
+ DEBUG: 'true'
properties:
- build-blocker:
use-build-blocker: true
properties:
- build-blocker:
use-build-blocker: true
build_tag: ''
- xtesting-branch:
branch: '{branch}'
build_tag: ''
- xtesting-branch:
branch: '{branch}'
+ - xtesting-DEBUG:
+ DEBUG: 'true'
properties:
- build-blocker:
use-build-blocker: true
properties:
- build-blocker:
use-build-blocker: true
slave: '{slave}'
- xtesting-build_tag:
build_tag: ''
slave: '{slave}'
- xtesting-build_tag:
build_tag: ''
+ - xtesting-DEBUG:
+ DEBUG: 'true'
properties:
- build-blocker:
use-build-blocker: true
properties:
- build-blocker:
use-build-blocker: true