Remove fds in all branches
[functest.git] / ci / gate.yaml
1 ---
2 - functest-buildparameters: &functest-buildparameters
3     name: 'functest-buildparameters'
4     parameters:
5       - string:
6           name: branch
7           default: '{branch}'
8
9 - functest-projectparameters: &functest-projectparameters
10     name: 'functest-projectparameters'
11     current-parameters: true
12
13 - scm:
14     name: functest-gerrit
15     scm:
16       - git:
17           url: https://gerrit.opnfv.org/gerrit/functest
18           refspec: '+refs/changes/*:refs/changes/*'
19           branches:
20             - ${branch}
21
22 - job-template:
23     name: '{repo}-functest-{container}-{tag}-build'
24     <<: *functest-buildparameters
25     scm:
26       - functest-gerrit
27     builders:
28       - shell: |
29           case "{container}" in
30           "components")
31               args="" ;;
32           *)
33               args="--build-arg BRANCH=${{branch}}" ;;
34           esac
35           cd docker/$(echo {container} |cut -d\- -f 2)
36           sudo docker build \
37             ${{args}} --pull=false --no-cache --force-rm=true \
38             -t {repo}/functest-{container}:{tag} .
39
40 - project:
41     name: repo-functest-container-tag-build
42     container:
43       - core
44       - tempest
45       - healthcheck
46       - smoke
47       - benchmarking
48       - components
49       - vnf
50       - features
51     jobs:
52       - '{repo}-functest-{container}-{tag}-build'
53
54 - job-template:
55     name: '{repo}-functest-{tag}-build'
56     project-type: multijob
57     <<: *functest-buildparameters
58     builders:
59       - multijob:
60           name: build functest-core
61           projects:
62             - name: '{repo}-functest-core-{tag}-build'
63               <<: *functest-projectparameters
64       - multijob:
65           name: build functest-tempest
66           projects:
67             - name: '{repo}-functest-tempest-{tag}-build'
68               <<: *functest-projectparameters
69       - multijob:
70           name: build all remaining contrainers
71           projects:
72             - name: '{repo}-functest-healthcheck-{tag}-build'
73               <<: *functest-projectparameters
74             - name: '{repo}-functest-smoke-{tag}-build'
75               <<: *functest-projectparameters
76             - name: '{repo}-functest-benchmarking-{tag}-build'
77               <<: *functest-projectparameters
78             - name: '{repo}-functest-components-{tag}-build'
79               <<: *functest-projectparameters
80             - name: '{repo}-functest-vnf-{tag}-build'
81               <<: *functest-projectparameters
82             - name: '{repo}-functest-features-{tag}-build'
83               <<: *functest-projectparameters
84
85 - project:
86     name: repo-functest-tag-build
87     jobs:
88       - '{repo}-functest-{tag}-build'
89
90 - job-template:
91     name: '{repo}-functest-{tag}-gate'
92     project-type: multijob
93     <<: *functest-buildparameters
94     builders:
95       - multijob:
96           name: build containers
97           projects:
98             - name: '{repo}-functest-{tag}-build'
99               <<: *functest-projectparameters
100       - multijob:
101           name: basics tests
102           projects:
103             - name: '{repo}-functest-healthcheck-{tag}-run'
104       - multijob:
105           name: advanced tests
106           projects:
107             - name: '{repo}-functest-smoke-{tag}-run'
108             - name: '{repo}-functest-benchmarking-{tag}-run'
109             - name: '{repo}-functest-components-{tag}-run'
110             - name: '{repo}-functest-vnf-{tag}-run'
111             - name: '{repo}-functest-features-{tag}-run'
112
113 - project:
114     name: repo-functest-tag-gate
115     jobs:
116       - '{repo}-functest-{tag}-gate'