summaryrefslogtreecommitdiffstats
path: root/ci/gate.yaml
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-08-20 11:14:17 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-31 11:54:17 +0200
commit7c3a118a8ca1417600971e20e1e0d90690784519 (patch)
tree78da6049ff4d4b23da103543b401c6f8a4884230 /ci/gate.yaml
parent4a3c47e4d729c14aaeff29fcfb09799b3441ff13 (diff)
Publish daily and gating jjbs
Change-Id: Ic7fd7bc9adf1672573878d6b74d43fa55e777be3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'ci/gate.yaml')
-rw-r--r--ci/gate.yaml96
1 files changed, 96 insertions, 0 deletions
diff --git a/ci/gate.yaml b/ci/gate.yaml
new file mode 100644
index 00000000..2efea236
--- /dev/null
+++ b/ci/gate.yaml
@@ -0,0 +1,96 @@
+---
+- functest-kubernetes-buildparameters: &functest-kubernetes-buildparameters
+ name: 'functest-kubernetes-buildparameters'
+ parameters:
+ - string:
+ name: branch
+ default: '{branch}'
+
+- projectparameters: &functest-kubernetes-projectparameters
+ name: 'functest-kubernetes-projectparameters'
+ current-parameters: true
+
+- scm:
+ name: functest-kubernetes-gerrit
+ scm:
+ - git:
+ url: https://gerrit.opnfv.org/gerrit/functest-kubernetes
+ refspec: '+refs/changes/*:refs/changes/*'
+ branches:
+ - ${branch}
+
+- job-template:
+ name: '{repo}-functest-kubernetes-{container}-{tag}-build'
+ <<: *functest-kubernetes-buildparameters
+ scm:
+ - functest-kubernetes-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}/functest-kubernetes-{container}:{tag} .
+
+- project:
+ name: '{repo}-functest-kubernetes-{container}-{tag}-build'
+ container:
+ - core
+ - healthcheck
+ - smoke
+ - features
+ jobs:
+ - '{repo}-functest-kubernetes-{container}-{tag}-build'
+
+- job-template:
+ name: '{repo}-functest-kubernetes-{tag}-build'
+ project-type: multijob
+ <<: *functest-kubernetes-buildparameters
+ builders:
+ - multijob:
+ name: build functest-kubernetes-core
+ projects:
+ - name: '{repo}-functest-kubernetes-core-{tag}-build'
+ <<: *functest-kubernetes-projectparameters
+ - multijob:
+ name: build functest-kubernetes-healthcheck
+ projects:
+ - name: '{repo}-functest-kubernetes-healthcheck-{tag}-build'
+ <<: *functest-kubernetes-projectparameters
+ - multijob:
+ name: build all remaining contrainers
+ projects:
+ - name: '{repo}-functest-kubernetes-smoke-{tag}-build'
+ <<: *functest-kubernetes-projectparameters
+ - name: '{repo}-functest-kubernetes-features-{tag}-build'
+ <<: *functest-kubernetes-projectparameters
+
+- project:
+ name: '{repo}-functest-kubernetes-{tag}-build'
+ jobs:
+ - '{repo}-functest-kubernetes-{tag}-build'
+
+- job-template:
+ name: '{repo}-functest-kubernetes-{tag}-gate'
+ project-type: multijob
+ <<: *functest-kubernetes-buildparameters
+ builders:
+ - multijob:
+ name: build containers
+ projects:
+ - name: '{repo}-functest-kubernetes-{tag}-build'
+ <<: *functest-kubernetes-projectparameters
+ - multijob:
+ name: basics tests
+ projects:
+ - name: '{repo}-functest-kubernetes-healthcheck-{tag}-run'
+ - multijob:
+ name: advanced tests
+ projects:
+ - name: '{repo}-functest-kubernetes-smoke-{tag}-run'
+ - name: '{repo}-functest-kubernetes-features-{tag}-run'
+
+- project:
+ name: '{repo}-functest-kubernetes-{tag}-gate'
+ jobs:
+ - '{repo}-functest-kubernetes-{tag}-gate'