2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
16 branch: 'stable/{stream}'
19 branch: 'stable/{stream}'
22 branch: 'stable/{stream}'
25 branch: 'stable/{stream}'
30 slave_label: 'lf-build2'
32 slave_label: 'opnfv-build-ubuntu-arm'
34 # yamllint disable rule:key-duplicates
62 # settings for jobs run in multijob phases
63 build-job-settings: &build-job-settings
64 current-parameters: false
66 node-parameters: false
67 predefined-parameters: |
68 PUSH_IMAGE=$PUSH_IMAGE
70 GERRIT_REFNAME=$GERRIT_REFNAME
71 DOCKERFILE=$DOCKERFILE
72 kill-phase-on: FAILURE
75 manifest-job-settings: &manifest-job-settings
76 current-parameters: false
78 node-parameters: false
79 predefined-parameters:
80 GERRIT_REFNAME=$GERRIT_REFNAME
81 kill-phase-on: FAILURE
84 # yamllint enable rule:key-duplicates
86 - "functest-docker-{stream}"
87 - "functest-{image}-docker-build-{arch_tag}-{stream}"
88 - "functest-{image}-docker-manifest-{stream}"
90 ########################
92 ########################
94 name: 'functest-docker-{stream}'
96 project-type: multijob
98 disabled: '{obj:disabled}'
101 - functest-job-parameters:
104 slave_label: 'lf-build2'
118 - gerrit-trigger-tag-created:
123 name: 'build functest-core images'
124 execution-type: PARALLEL
126 - name: 'functest-core-docker-build-amd64-{stream}'
127 <<: *build-job-settings
128 - name: 'functest-core-docker-build-arm64-{stream}'
129 <<: *build-job-settings
131 name: 'publish functest-core manifests'
132 execution-type: PARALLEL
134 - name: 'functest-core-docker-manifest-{stream}'
135 <<: *manifest-job-settings
137 name: 'build functest-tempest images'
138 execution-type: PARALLEL
140 - name: 'functest-tempest-docker-build-amd64-{stream}'
141 <<: *build-job-settings
142 - name: 'functest-tempest-docker-build-arm64-{stream}'
143 <<: *build-job-settings
145 name: 'publish functest-tempest manifests'
146 execution-type: PARALLEL
148 - name: 'functest-tempest-docker-manifest-{stream}'
149 <<: *manifest-job-settings
151 name: 'build all functest images'
152 condition: SUCCESSFUL
153 execution-type: PARALLEL
155 - name: 'functest-healthcheck-docker-build-amd64-{stream}'
156 <<: *build-job-settings
157 - name: 'functest-healthcheck-docker-build-arm64-{stream}'
158 <<: *build-job-settings
159 - name: 'functest-smoke-docker-build-amd64-{stream}'
160 <<: *build-job-settings
161 - name: 'functest-smoke-docker-build-arm64-{stream}'
162 <<: *build-job-settings
163 - name: 'functest-benchmarking-docker-build-amd64-{stream}'
164 <<: *build-job-settings
165 - name: 'functest-benchmarking-docker-build-arm64-{stream}'
166 <<: *build-job-settings
167 - name: 'functest-vnf-docker-build-amd64-{stream}'
168 <<: *build-job-settings
169 - name: 'functest-vnf-docker-build-arm64-{stream}'
170 <<: *build-job-settings
171 - name: 'functest-features-docker-build-amd64-{stream}'
172 <<: *build-job-settings
173 - name: 'functest-features-docker-build-arm64-{stream}'
174 <<: *build-job-settings
176 name: 'publish all manifests'
177 condition: SUCCESSFUL
178 execution-type: PARALLEL
180 - name: 'functest-healthcheck-docker-manifest-{stream}'
181 <<: *manifest-job-settings
182 - name: 'functest-smoke-docker-manifest-{stream}'
183 <<: *manifest-job-settings
184 - name: 'functest-benchmarking-docker-manifest-{stream}'
185 <<: *manifest-job-settings
186 - name: 'functest-vnf-docker-manifest-{stream}'
187 <<: *manifest-job-settings
188 - name: 'functest-features-docker-manifest-{stream}'
189 <<: *manifest-job-settings
191 name: 'build all functest cntt images'
192 condition: SUCCESSFUL
193 execution-type: PARALLEL
195 - name: 'functest-smoke-cntt-docker-build-amd64-{stream}'
196 <<: *build-job-settings
197 - name: 'functest-smoke-cntt-docker-build-arm64-{stream}'
198 <<: *build-job-settings
199 - name: 'functest-benchmarking-cntt-docker-build-amd64-{stream}'
200 <<: *build-job-settings
201 - name: 'functest-benchmarking-cntt-docker-build-arm64-{stream}'
202 <<: *build-job-settings
204 name: 'publish all cntt manifests'
205 condition: SUCCESSFUL
206 execution-type: PARALLEL
208 - name: 'functest-smoke-cntt-docker-manifest-{stream}'
209 <<: *manifest-job-settings
210 - name: 'functest-benchmarking-cntt-docker-manifest-{stream}'
211 <<: *manifest-job-settings
214 - 'functest-amd64-recipients'
215 - 'functest-arm64-recipients'
218 name: 'functest-{image}-docker-build-{arch_tag}-{stream}'
219 disabled: '{obj:disabled}'
221 - functest-job-parameters:
224 slave_label: '{slave_label}'
225 arch_tag: '{arch_tag}'
233 sudo amd64_dirs= arm64_dirs=docker/{image} arm_dirs= bash ./build.sh ;;
235 sudo amd64_dirs=docker/{image} arm64_dirs= arm_dirs= bash ./build.sh ;;
240 name: 'functest-{image}-docker-manifest-{stream}'
249 description: 'Slave label on Jenkins'
251 node-eligibility: 'ignore-offline'
255 description: "Project name used to enable job conditions"
258 default: https://gerrit.opnfv.org/gerrit/$PROJECT
259 description: 'Git URL to use on this Jenkins Slave'
263 description: "Repository name for functest images"
266 disabled: '{obj:disabled}'
277 sudo manifest-tool push from-args \
278 --platforms linux/amd64,linux/arm64 \
279 --template $REPO/functest-{image}:ARCH-$tag \
280 --target $REPO/functest-{image}:$tag
285 name: functest-job-parameters
292 default: '{slave_label}'
293 description: 'Slave label on Jenkins'
295 node-eligibility: 'ignore-offline'
298 default: https://gerrit.opnfv.org/gerrit/$PROJECT
299 description: 'Git URL to use on this Jenkins Slave'
303 description: "To enable/disable pushing the image to Dockerhub."
307 description: "commit id to make a snapshot docker image"
311 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
314 default: "Dockerfile"
315 description: "Dockerfile to use for creating the image."
318 default: "{arch_tag}"
319 description: "If set, this value will be added to the docker image tag as a prefix"
323 description: "Project name used to enable job conditions"
327 description: "Repository name for functest images"
331 name: 'functest-arm64-recipients'
335 cristina.pauna@enea.com
336 alexandru.avadanii@enea.com
337 delia.popescu@enea.com
340 name: 'functest-amd64-recipients'
344 jalausuch@suse.com morgan.richomme@orange.com
345 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
346 juha.kosonen@nokia.com wangwulin@huawei.com
347 valentin.boucher@kontron.com