summaryrefslogtreecommitdiffstats
path: root/ci/gate.yaml
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-08-19 13:37:31 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-20 07:03:17 +0200
commit69f0b2665b397e5128bf7a83541d3567c4834af3 (patch)
tree825d9ee65a383713911b07a45c08ec1202e257f4 /ci/gate.yaml
parent80c6eb6f6eb1fae6f345f54d7265ba218b049c69 (diff)
Publish Functest daily and gate jobs
As opposed to the Releng ones, they are designed to be easily executed by endusers as well. They can be considered as a first step towards a full Functest CI/CD toolchain deployed via docker-compose. All components testcases are enabled here. They hugely leverage on templates to load the right yamls per branch and multijobs to run testcases in parallel. Many steps are proposed allowing running part of the chain. Executors have to be increased to allow running them (it was tested vs 10 and more). At first, all docker images are downloaded to avoid different versions between testcases. They will be improved in a second change to ensure that only one node is selected and to take all Functest env vars into account. Change-Id: I99c7b8ee5d0ddbb00102b3147739b5e8b5c65c23 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'ci/gate.yaml')
-rw-r--r--ci/gate.yaml107
1 files changed, 107 insertions, 0 deletions
diff --git a/ci/gate.yaml b/ci/gate.yaml
new file mode 100644
index 000000000..278ecb778
--- /dev/null
+++ b/ci/gate.yaml
@@ -0,0 +1,107 @@
+---
+- buildparameters: &buildparameters
+ name: 'buildparameters'
+ parameters:
+ - string:
+ name: branch
+ default: '{branch}'
+
+- projectparameters: &projectparameters
+ name: 'projectparameters'
+ current-parameters: true
+
+- scm:
+ name: gerrit
+ scm:
+ - git:
+ url: https://gerrit.opnfv.org/gerrit/functest
+ refspec: '+refs/changes/*:refs/changes/*'
+ branches:
+ - ${branch}
+
+- job-template:
+ name: '{repo}-{container}-{tag}-build'
+ <<: *buildparameters
+ scm:
+ - gerrit
+ builders:
+ - shell: |
+ cd docker/$(echo {container} |cut -d\- -f 2)
+ docker build \
+ --pull=false --no-cache --force-rm=true \
+ --build-arg BRANCH=${{branch}} \
+ -t {repo}/{container}:{tag} .
+
+- project:
+ name: '{repo}-{container}-{tag}-build'
+ container:
+ - functest-core
+ - functest-tempest
+ - functest-healthcheck
+ - functest-smoke
+ - functest-components
+ - functest-vnf
+ - functest-features
+ jobs:
+ - '{repo}-{container}-{tag}-build'
+
+- job-template:
+ name: '{repo}-functest-{tag}-build'
+ project-type: multijob
+ <<: *buildparameters
+ builders:
+ - multijob:
+ name: build functest-core
+ projects:
+ - name: '{repo}-functest-core-{tag}-build'
+ <<: *projectparameters
+ - multijob:
+ name: build functest-tempest
+ projects:
+ - name: '{repo}-functest-tempest-{tag}-build'
+ <<: *projectparameters
+ - multijob:
+ name: build all remaining contrainers
+ projects:
+ - name: '{repo}-functest-healthcheck-{tag}-build'
+ <<: *projectparameters
+ - name: '{repo}-functest-smoke-{tag}-build'
+ <<: *projectparameters
+ - name: '{repo}-functest-components-{tag}-build'
+ <<: *projectparameters
+ - name: '{repo}-functest-vnf-{tag}-build'
+ <<: *projectparameters
+ - name: '{repo}-functest-features-{tag}-build'
+ <<: *projectparameters
+
+- project:
+ name: '{repo}-functest-{tag}-build'
+ jobs:
+ - '{repo}-functest-{tag}-build'
+
+- job-template:
+ name: '{repo}-functest-{tag}-gate'
+ project-type: multijob
+ <<: *buildparameters
+ builders:
+ - multijob:
+ name: build containers
+ projects:
+ - name: '{repo}-functest-{tag}-build'
+ <<: *projectparameters
+ - multijob:
+ name: basics tests
+ projects:
+ - name: '{repo}-functest-healthcheck-{tag}-run'
+ - multijob:
+ name: advanced tests
+ projects:
+ - name: '{repo}-functest-smoke-{tag}-run'
+ - name: '{repo}-functest-components-{tag}-run'
+ - name: '{repo}-functest-vnf-{tag}-run'
+ - name: '{repo}-functest-features-{tag}-run'
+
+- project:
+ name: '{repo}-functest-{tag}-gate'
+ jobs:
+ - '{repo}-functest-{tag}-gate'