2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
16 branch: 'stable/{stream}'
19 branch: 'stable/{stream}'
22 branch: 'stable/{stream}'
27 slave_label: 'lf-build2'
29 slave_label: 'opnfv-build-ubuntu-arm'
31 # yamllint disable rule:key-duplicates
55 # settings for jobs run in multijob phases
56 build-job-settings: &build-job-settings
57 current-parameters: false
59 node-parameters: false
60 predefined-parameters: |
61 PUSH_IMAGE=$PUSH_IMAGE
63 GERRIT_REFNAME=$GERRIT_REFNAME
64 DOCKERFILE=$DOCKERFILE
65 kill-phase-on: FAILURE
68 manifest-job-settings: &manifest-job-settings
69 current-parameters: false
71 node-parameters: false
72 predefined-parameters:
73 GERRIT_REFNAME=$GERRIT_REFNAME
74 kill-phase-on: FAILURE
77 # yamllint enable rule:key-duplicates
79 - "functest-docker-{stream}"
80 - "functest-{image}-docker-build-{arch_tag}-{stream}"
81 - "functest-{image}-docker-manifest-{stream}"
83 ########################
85 ########################
87 name: 'functest-docker-{stream}'
89 project-type: multijob
91 disabled: '{obj:disabled}'
94 - functest-job-parameters:
97 slave_label: 'opnfv-build-ubuntu'
111 - gerrit-trigger-tag-created:
116 name: 'build functest-core images'
117 execution-type: PARALLEL
119 - name: 'functest-core-docker-build-amd64-{stream}'
120 <<: *build-job-settings
121 - name: 'functest-core-docker-build-arm64-{stream}'
122 <<: *build-job-settings
124 name: 'publish functest-core manifests'
125 execution-type: PARALLEL
127 - name: 'functest-core-docker-manifest-{stream}'
128 <<: *manifest-job-settings
130 name: 'build functest-tempest images'
131 execution-type: PARALLEL
133 - name: 'functest-tempest-docker-build-amd64-{stream}'
134 <<: *build-job-settings
135 - name: 'functest-tempest-docker-build-arm64-{stream}'
136 <<: *build-job-settings
138 name: 'publish functest-tempest manifests'
139 execution-type: PARALLEL
141 - name: 'functest-tempest-docker-manifest-{stream}'
142 <<: *manifest-job-settings
144 name: 'build all functest images'
145 condition: SUCCESSFUL
146 execution-type: PARALLEL
148 - name: 'functest-healthcheck-docker-build-amd64-{stream}'
149 <<: *build-job-settings
150 - name: 'functest-healthcheck-docker-build-arm64-{stream}'
151 <<: *build-job-settings
152 - name: 'functest-smoke-docker-build-amd64-{stream}'
153 <<: *build-job-settings
154 - name: 'functest-smoke-docker-build-arm64-{stream}'
155 <<: *build-job-settings
156 - name: 'functest-benchmarking-docker-build-amd64-{stream}'
157 <<: *build-job-settings
158 - name: 'functest-benchmarking-docker-build-arm64-{stream}'
159 <<: *build-job-settings
160 - name: 'functest-vnf-docker-build-amd64-{stream}'
161 <<: *build-job-settings
162 - name: 'functest-vnf-docker-build-arm64-{stream}'
163 <<: *build-job-settings
164 - name: 'functest-features-docker-build-amd64-{stream}'
165 <<: *build-job-settings
166 - name: 'functest-features-docker-build-arm64-{stream}'
167 <<: *build-job-settings
169 name: 'publish all manifests'
170 condition: SUCCESSFUL
171 execution-type: PARALLEL
173 - name: 'functest-healthcheck-docker-manifest-{stream}'
174 <<: *manifest-job-settings
175 - name: 'functest-smoke-docker-manifest-{stream}'
176 <<: *manifest-job-settings
177 - name: 'functest-benchmarking-docker-manifest-{stream}'
178 <<: *manifest-job-settings
179 - name: 'functest-vnf-docker-manifest-{stream}'
180 <<: *manifest-job-settings
181 - name: 'functest-features-docker-manifest-{stream}'
182 <<: *manifest-job-settings
184 name: 'build all functest cntt images'
185 condition: SUCCESSFUL
186 execution-type: PARALLEL
188 - name: 'functest-smoke-cntt-docker-build-amd64-{stream}'
189 <<: *build-job-settings
190 - name: 'functest-smoke-cntt-docker-build-arm64-{stream}'
191 <<: *build-job-settings
192 - name: 'functest-benchmarking-cntt-docker-build-amd64-{stream}'
193 <<: *build-job-settings
194 - name: 'functest-benchmarking-cntt-docker-build-arm64-{stream}'
195 <<: *build-job-settings
197 name: 'publish all cntt manifests'
198 condition: SUCCESSFUL
199 execution-type: PARALLEL
201 - name: 'functest-smoke-cntt-docker-manifest-{stream}'
202 <<: *manifest-job-settings
203 - name: 'functest-benchmarking-cntt-docker-manifest-{stream}'
204 <<: *manifest-job-settings
207 - 'functest-amd64-recipients'
208 - 'functest-arm64-recipients'
211 name: 'functest-{image}-docker-build-{arch_tag}-{stream}'
212 disabled: '{obj:disabled}'
214 - functest-job-parameters:
217 slave_label: '{slave_label}'
218 arch_tag: '{arch_tag}'
226 sudo amd64_dirs= arm64_dirs=docker/{image} arm_dirs= bash ./build.sh ;;
228 sudo amd64_dirs=docker/{image} arm64_dirs= arm_dirs= bash ./build.sh ;;
233 name: 'functest-{image}-docker-manifest-{stream}'
241 default: 'opnfv-build-ubuntu'
242 description: 'Slave label on Jenkins'
244 node-eligibility: 'ignore-offline'
248 description: "Project name used to enable job conditions"
251 default: https://gerrit.opnfv.org/gerrit/$PROJECT
252 description: 'Git URL to use on this Jenkins Slave'
256 description: "Repository name for functest images"
259 disabled: '{obj:disabled}'
270 sudo manifest-tool push from-args \
271 --platforms linux/amd64,linux/arm64 \
272 --template $REPO/functest-{image}:ARCH-$tag \
273 --target $REPO/functest-{image}:$tag
278 name: functest-job-parameters
285 default: '{slave_label}'
286 description: 'Slave label on Jenkins'
288 node-eligibility: 'ignore-offline'
291 default: https://gerrit.opnfv.org/gerrit/$PROJECT
292 description: 'Git URL to use on this Jenkins Slave'
296 description: "To enable/disable pushing the image to Dockerhub."
300 description: "commit id to make a snapshot docker image"
304 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
307 default: "Dockerfile"
308 description: "Dockerfile to use for creating the image."
311 default: "{arch_tag}"
312 description: "If set, this value will be added to the docker image tag as a prefix"
316 description: "Project name used to enable job conditions"
320 description: "Repository name for functest images"
324 name: 'functest-arm64-recipients'
328 cristina.pauna@enea.com
329 alexandru.avadanii@enea.com
330 delia.popescu@enea.com
333 name: 'functest-amd64-recipients'
337 jalausuch@suse.com morgan.richomme@orange.com
338 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
339 juha.kosonen@nokia.com wangwulin@huawei.com
340 valentin.boucher@kontron.com