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}'
28 branch: 'stable/{stream}'
33 slave_label: 'lf-build2'
35 # yamllint disable rule:key-duplicates
67 # settings for jobs run in multijob phases
68 build-job-settings: &build-job-settings
69 current-parameters: false
71 node-parameters: false
72 predefined-parameters: |
73 PUSH_IMAGE=$PUSH_IMAGE
75 GERRIT_REFNAME=$GERRIT_REFNAME
76 DOCKERFILE=$DOCKERFILE
77 kill-phase-on: FAILURE
80 manifest-job-settings: &manifest-job-settings
81 current-parameters: false
83 node-parameters: false
84 predefined-parameters:
85 GERRIT_REFNAME=$GERRIT_REFNAME
86 kill-phase-on: FAILURE
89 # yamllint enable rule:key-duplicates
91 - "functest-docker-{stream}"
92 - "functest-{image}-docker-build-{arch_tag}-{stream}"
93 - "functest-{image}-docker-manifest-{stream}"
95 ########################
97 ########################
99 name: 'functest-docker-{stream}'
101 project-type: multijob
103 disabled: '{obj:disabled}'
106 - functest-job-parameters:
109 slave_label: 'lf-build2'
123 - gerrit-trigger-tag-created:
128 name: 'build functest-core images'
129 execution-type: PARALLEL
131 - name: 'functest-core-docker-build-amd64-{stream}'
132 <<: *build-job-settings
134 name: 'publish functest-core manifests'
135 execution-type: PARALLEL
137 - name: 'functest-core-docker-manifest-{stream}'
138 <<: *manifest-job-settings
140 name: 'build functest-tempest images'
141 execution-type: PARALLEL
143 - name: 'functest-tempest-docker-build-amd64-{stream}'
144 <<: *build-job-settings
146 name: 'publish functest-tempest manifests'
147 execution-type: PARALLEL
149 - name: 'functest-tempest-docker-manifest-{stream}'
150 <<: *manifest-job-settings
152 name: 'build all functest images'
153 condition: SUCCESSFUL
154 execution-type: PARALLEL
156 - name: 'functest-healthcheck-docker-build-amd64-{stream}'
157 <<: *build-job-settings
158 - name: 'functest-smoke-docker-build-amd64-{stream}'
159 <<: *build-job-settings
160 - name: 'functest-benchmarking-docker-build-amd64-{stream}'
161 <<: *build-job-settings
162 - name: 'functest-vnf-docker-build-amd64-{stream}'
163 <<: *build-job-settings
164 - name: 'functest-features-docker-build-amd64-{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-features-docker-manifest-{stream}'
180 <<: *manifest-job-settings
182 name: 'build all functest cntt images'
183 condition: SUCCESSFUL
184 execution-type: PARALLEL
186 - name: 'functest-smoke-cntt-docker-build-amd64-{stream}'
187 <<: *build-job-settings
188 - name: 'functest-benchmarking-cntt-docker-build-amd64-{stream}'
189 <<: *build-job-settings
191 name: 'publish all cntt manifests'
192 condition: SUCCESSFUL
193 execution-type: PARALLEL
195 - name: 'functest-smoke-cntt-docker-manifest-{stream}'
196 <<: *manifest-job-settings
197 - name: 'functest-benchmarking-cntt-docker-manifest-{stream}'
198 <<: *manifest-job-settings
201 - 'functest-amd64-recipients'
204 name: 'functest-{image}-docker-build-{arch_tag}-{stream}'
205 disabled: '{obj:disabled}'
207 - functest-job-parameters:
210 slave_label: '{slave_label}'
211 arch_tag: '{arch_tag}'
217 sudo amd64_dirs=docker/{image} arm64_dirs= arm_dirs= bash ./build.sh
221 name: 'functest-{image}-docker-manifest-{stream}'
230 description: 'Slave label on Jenkins'
232 node-eligibility: 'ignore-offline'
236 description: "Project name used to enable job conditions"
239 default: https://gerrit.opnfv.org/gerrit/$PROJECT
240 description: 'Git URL to use on this Jenkins Slave'
244 description: "Repository name for functest images"
247 disabled: '{obj:disabled}'
258 sudo manifest-tool push from-args \
259 --platforms linux/amd64 \
260 --template $REPO/functest-{image}:ARCH-$tag \
261 --target $REPO/functest-{image}:$tag
266 name: functest-job-parameters
273 default: '{slave_label}'
274 description: 'Slave label on Jenkins'
276 node-eligibility: 'ignore-offline'
279 default: https://gerrit.opnfv.org/gerrit/$PROJECT
280 description: 'Git URL to use on this Jenkins Slave'
284 description: "To enable/disable pushing the image to Dockerhub."
288 description: "commit id to make a snapshot docker image"
292 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
295 default: "Dockerfile"
296 description: "Dockerfile to use for creating the image."
299 default: "{arch_tag}"
300 description: "If set, this value will be added to the docker image tag as a prefix"
304 description: "Project name used to enable job conditions"
308 description: "Repository name for functest images"
312 name: 'functest-amd64-recipients'
316 jalausuch@suse.com morgan.richomme@orange.com
317 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
318 juha.kosonen@nokia.com wangwulin@huawei.com
319 valentin.boucher@kontron.com