name: 'functest-defaultparameters'
repo: opnfv
tag:
- - gambia
- - hunter
- - latest
+ - gambia:
+ branch: stable/gambia
+ - hunter:
+ branch: stable/hunter
+ - master:
+ branch: master
-- functest-buildparameters: &functest-buildparameters
- name: 'functest-buildparameters'
+- job-template:
+ name: '{repo}-functest-{container}-{tag}-pull'
parameters:
- functest-virtual-defaults
- - string:
- name: branch
- default: master
+ builders:
+ - shell: sudo docker pull {repo}/functest-{container}:{tag}
+
+- project:
+ name: repo-functest-container-tag-pull
+ <<: *functest-defaultparameters
+ container:
+ - healthcheck
+ - smoke
+ - benchmarking
+ - components
+ - vnf
+ - features
+ jobs:
+ - '{repo}-functest-{container}-{tag}-pull'
+
+- functest-pulljobs: &functest-pulljobs
+ name: 'functest-pulljobs'
+ projects:
+ - name: '{repo}-functest-healthcheck-{tag}-pull'
+ - name: '{repo}-functest-smoke-{tag}-pull'
+ - name: '{repo}-functest-benchmarking-{tag}-pull'
+ - name: '{repo}-functest-components-{tag}-pull'
+ - name: '{repo}-functest-vnf-{tag}-pull'
+ - name: '{repo}-functest-features-{tag}-pull'
- job-template:
name: '{repo}-functest-{container}-{test}-{tag}-run'
- functest-virtual-defaults
builders:
- shell: |
- sudo docker run \
+ sudo docker run --rm \
-e EXTERNAL_NETWORK=public1 \
-v /home/opnfv/functest/results/$JOB_NAME-$BUILD_ID:\
/home/opnfv/functest/results \
-v /home/opnfv/functest/openstack.creds:\
/home/opnfv/functest/conf/env_file \
-v /home/opnfv/functest/images:/home/opnfv/functest/images \
+ -v /home/opnfv/functest/tempest_blacklist.yaml:\
+ /usr/lib/python2.7/site-packages/functest/opnfv_tests/openstack/\
+ tempest/custom_tests/blacklist.yaml \
+ -v /home/opnfv/functest/rally_blacklist.yaml:\
+ /usr/lib/python2.7/site-packages/functest/opnfv_tests/openstack/\
+ rally/blacklist.yaml \
{repo}/functest-{container}:{tag} run_tests -t {test}
- project:
test:
- tempest_smoke
- neutron-tempest-plugin-api
+ - rally_sanity
- rally_jobs
- refstack_defcore
- patrole
projects:
- name: '{repo}-functest-smoke-tempest_smoke-{tag}-run'
- name: '{repo}-functest-smoke-neutron-tempest-plugin-api-{tag}-run'
+ - name: '{repo}-functest-smoke-rally_sanity-{tag}-run'
- name: '{repo}-functest-smoke-rally_jobs-{tag}-run'
- name: '{repo}-functest-smoke-refstack_defcore-{tag}-run'
- name: '{repo}-functest-smoke-patrole-{tag}-run'
projects:
- name: '{repo}-functest-components-tempest_full-{tag}-run'
- name: '{repo}-functest-components-tempest_scenario-{tag}-run'
- - name: '{repo}-functest-components-rally_full-{tag}-run'
+ # - name: '{repo}-functest-components-rally_full-{tag}-run'
- project:
name: repo-functest-vnf-{test}-{tag}-run
parameters:
- functest-virtual-defaults
builders:
+ - multijob:
+ name: pull containers
+ <<: *functest-pulljobs
- multijob:
name: healthcheck
<<: *functest-healthcheckjobs
- multijob:
name: benchmarking
<<: *functest-benchmarkingjobs
+ - multijob:
+ name: components
+ <<: *functest-componentsjobs
+ - multijob:
+ name: vnf
+ <<: *functest-vnfjobs
- multijob:
name: features
<<: *functest-featuresjobs
jobs:
- '{repo}-functest-{tag}-daily'
-- scm:
- name: functest-gerrit
- scm:
- - git:
- url: https://gerrit.opnfv.org/gerrit/functest
- refspec: '+refs/changes/*:refs/changes/*'
- branches:
- - ${branch}
+- functest-buildparameters: &functest-buildparameters
+ name: 'functest-buildparameters'
+ parameters:
+ - functest-virtual-defaults
+ - string:
+ name: BRANCH
+ default: '{branch}'
- job-template:
name: '{repo}-functest-{container}-{tag}-build'
<<: *functest-buildparameters
scm:
- - functest-gerrit
+ - git:
+ url: https://gerrit.opnfv.org/gerrit/functest
+ refspec: '+refs/changes/*:refs/changes/*'
+ branches:
+ - $GERRIT_REFSPEC
builders:
- shell: |
case "{container}" in
"components")
args="" ;;
*)
- args="--build-arg BRANCH=${{branch}}" ;;
+ args="--build-arg BRANCH=$GERRIT_REFSPEC" ;;
esac
- cd docker/$(echo {container} |cut -d\- -f 2)
+ cd docker/{container}
sudo docker build \
${{args}} --pull=false --no-cache --force-rm=true \
-t {repo}/functest-{container}:{tag} .
name: '{repo}-functest-{tag}-gate'
project-type: multijob
<<: *functest-buildparameters
+ triggers:
+ - gerrit-trigger-patchset-created:
+ project: 'functest'
+ branch: '{branch}'
+ files: '**'
builders:
- multijob:
name: build functest-core
- multijob:
name: benchmarking
<<: *functest-benchmarkingjobs
+ - multijob:
+ name: components
+ <<: *functest-componentsjobs
+ # - multijob:
+ # name: vnf
+ # <<: *functest-vnfjobs
- multijob:
name: features
<<: *functest-featuresjobs