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: 'opnfv-build-ubuntu'
29 slave_label: 'opnfv-build-ubuntu-arm'
31 # yamllint disable rule:key-duplicates
53 # settings for jobs run in multijob phases
54 build-job-settings: &build-job-settings
55 current-parameters: false
57 node-parameters: false
58 predefined-parameters: |
59 PUSH_IMAGE=$PUSH_IMAGE
61 GERRIT_REFNAME=$GERRIT_REFNAME
62 DOCKERFILE=$DOCKERFILE
63 kill-phase-on: FAILURE
66 manifest-job-settings: &manifest-job-settings
67 current-parameters: false
69 node-parameters: false
70 predefined-parameters:
71 GERRIT_REFNAME=$GERRIT_REFNAME
72 kill-phase-on: FAILURE
75 # yamllint enable rule:key-duplicates
77 - "functest-docker-{stream}"
78 - "functest-{image}-docker-build-{arch_tag}-{stream}"
79 - "functest-{image}-docker-manifest-{stream}"
81 ########################
83 ########################
85 name: 'functest-docker-{stream}'
87 project-type: multijob
89 disabled: '{obj:disabled}'
92 - functest-job-parameters:
95 slave_label: 'opnfv-build-ubuntu'
109 - gerrit-trigger-tag-created:
114 name: 'build functest-core images'
115 execution-type: PARALLEL
117 - name: 'functest-core-docker-build-amd64-{stream}'
118 <<: *build-job-settings
119 - name: 'functest-core-docker-build-arm64-{stream}'
120 <<: *build-job-settings
122 name: 'publish functest-core manifests'
123 execution-type: PARALLEL
125 - name: 'functest-core-docker-manifest-{stream}'
126 <<: *manifest-job-settings
128 name: 'build functest-tempest images'
129 execution-type: PARALLEL
131 - name: 'functest-tempest-docker-build-amd64-{stream}'
132 <<: *build-job-settings
133 - name: 'functest-tempest-docker-build-arm64-{stream}'
134 <<: *build-job-settings
136 name: 'publish functest-tempest manifests'
137 execution-type: PARALLEL
139 - name: 'functest-tempest-docker-manifest-{stream}'
140 <<: *manifest-job-settings
142 name: 'build all functest images'
143 condition: SUCCESSFUL
144 execution-type: PARALLEL
146 - name: 'functest-healthcheck-docker-build-amd64-{stream}'
147 <<: *build-job-settings
148 - name: 'functest-healthcheck-docker-build-arm64-{stream}'
149 <<: *build-job-settings
150 - name: 'functest-smoke-docker-build-amd64-{stream}'
151 <<: *build-job-settings
152 - name: 'functest-smoke-docker-build-arm64-{stream}'
153 <<: *build-job-settings
154 - name: 'functest-benchmarking-docker-build-amd64-{stream}'
155 <<: *build-job-settings
156 - name: 'functest-benchmarking-docker-build-arm64-{stream}'
157 <<: *build-job-settings
158 - name: 'functest-vnf-docker-build-amd64-{stream}'
159 <<: *build-job-settings
160 - name: 'functest-vnf-docker-build-arm64-{stream}'
161 <<: *build-job-settings
162 - name: 'functest-smoke-cntt-docker-build-amd64-{stream}'
163 <<: *build-job-settings
164 - name: 'functest-smoke-cntt-docker-build-arm64-{stream}'
165 <<: *build-job-settings
167 name: 'publish all manifests'
168 condition: SUCCESSFUL
169 execution-type: PARALLEL
171 - name: 'functest-healthcheck-docker-manifest-{stream}'
172 <<: *manifest-job-settings
173 - name: 'functest-smoke-docker-manifest-{stream}'
174 <<: *manifest-job-settings
175 - name: 'functest-benchmarking-docker-manifest-{stream}'
176 <<: *manifest-job-settings
177 - name: 'functest-vnf-docker-manifest-{stream}'
178 <<: *manifest-job-settings
179 - name: 'functest-smoke-cntt-docker-manifest-{stream}'
180 <<: *manifest-job-settings
183 - 'functest-amd64-recipients'
184 - 'functest-arm64-recipients'
187 name: 'functest-{image}-docker-build-{arch_tag}-{stream}'
188 disabled: '{obj:disabled}'
190 - functest-job-parameters:
193 slave_label: '{slave_label}'
194 arch_tag: '{arch_tag}'
202 sudo amd64_dirs= arm64_dirs=docker/{image} arm_dirs= bash ./build.sh ;;
204 sudo amd64_dirs=docker/{image} arm64_dirs= arm_dirs= bash ./build.sh ;;
209 name: 'functest-{image}-docker-manifest-{stream}'
217 default: 'opnfv-build-ubuntu'
218 description: 'Slave label on Jenkins'
220 node-eligibility: 'ignore-offline'
224 description: "Project name used to enable job conditions"
227 default: https://gerrit.opnfv.org/gerrit/$PROJECT
228 description: 'Git URL to use on this Jenkins Slave'
232 description: "Repository name for functest images"
235 disabled: '{obj:disabled}'
246 sudo manifest-tool push from-args \
247 --platforms linux/amd64,linux/arm64 \
248 --template $REPO/functest-{image}:ARCH-$tag \
249 --target $REPO/functest-{image}:$tag
254 name: functest-job-parameters
261 default: '{slave_label}'
262 description: 'Slave label on Jenkins'
264 node-eligibility: 'ignore-offline'
267 default: https://gerrit.opnfv.org/gerrit/$PROJECT
268 description: 'Git URL to use on this Jenkins Slave'
272 description: "To enable/disable pushing the image to Dockerhub."
276 description: "commit id to make a snapshot docker image"
280 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
283 default: "Dockerfile"
284 description: "Dockerfile to use for creating the image."
287 default: "{arch_tag}"
288 description: "If set, this value will be added to the docker image tag as a prefix"
292 description: "Project name used to enable job conditions"
296 description: "Repository name for functest images"
300 name: 'functest-arm64-recipients'
304 cristina.pauna@enea.com
305 alexandru.avadanii@enea.com
306 delia.popescu@enea.com
309 name: 'functest-amd64-recipients'
313 jalausuch@suse.com morgan.richomme@orange.com
314 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
315 juha.kosonen@nokia.com wangwulin@huawei.com
316 valentin.boucher@kontron.com