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
63 # settings for jobs run in multijob phases
64 build-job-settings: &build-job-settings
65 current-parameters: false
67 node-parameters: false
68 predefined-parameters: |
69 PUSH_IMAGE=$PUSH_IMAGE
71 GERRIT_REFNAME=$GERRIT_REFNAME
72 DOCKERFILE=$DOCKERFILE
73 kill-phase-on: FAILURE
76 manifest-job-settings: &manifest-job-settings
77 current-parameters: false
79 node-parameters: false
80 predefined-parameters:
81 GERRIT_REFNAME=$GERRIT_REFNAME
82 kill-phase-on: FAILURE
85 # yamllint enable rule:key-duplicates
87 - "functest-docker-{stream}"
88 - "functest-{image}-docker-build-{arch_tag}-{stream}"
89 - "functest-{image}-docker-manifest-{stream}"
91 ########################
93 ########################
95 name: 'functest-docker-{stream}'
97 project-type: multijob
99 disabled: '{obj:disabled}'
102 - functest-job-parameters:
105 slave_label: 'lf-build2'
119 - gerrit-trigger-tag-created:
124 name: 'build functest-core images'
125 execution-type: PARALLEL
127 - name: 'functest-core-docker-build-amd64-{stream}'
128 <<: *build-job-settings
130 name: 'publish functest-core manifests'
131 execution-type: PARALLEL
133 - name: 'functest-core-docker-manifest-{stream}'
134 <<: *manifest-job-settings
136 name: 'build functest-tempest images'
137 execution-type: PARALLEL
139 - name: 'functest-tempest-docker-build-amd64-{stream}'
140 <<: *build-job-settings
142 name: 'publish functest-tempest manifests'
143 execution-type: PARALLEL
145 - name: 'functest-tempest-docker-manifest-{stream}'
146 <<: *manifest-job-settings
148 name: 'build all functest images'
149 condition: SUCCESSFUL
150 execution-type: PARALLEL
152 - name: 'functest-healthcheck-docker-build-amd64-{stream}'
153 <<: *build-job-settings
154 - name: 'functest-smoke-docker-build-amd64-{stream}'
155 <<: *build-job-settings
156 - name: 'functest-benchmarking-docker-build-amd64-{stream}'
157 <<: *build-job-settings
158 - name: 'functest-vnf-docker-build-amd64-{stream}'
159 <<: *build-job-settings
160 - name: 'functest-features-docker-build-amd64-{stream}'
161 <<: *build-job-settings
163 name: 'publish all manifests'
164 condition: SUCCESSFUL
165 execution-type: PARALLEL
167 - name: 'functest-healthcheck-docker-manifest-{stream}'
168 <<: *manifest-job-settings
169 - name: 'functest-smoke-docker-manifest-{stream}'
170 <<: *manifest-job-settings
171 - name: 'functest-benchmarking-docker-manifest-{stream}'
172 <<: *manifest-job-settings
173 - name: 'functest-vnf-docker-manifest-{stream}'
174 <<: *manifest-job-settings
175 - name: 'functest-features-docker-manifest-{stream}'
176 <<: *manifest-job-settings
178 name: 'build all functest cntt images'
179 condition: SUCCESSFUL
180 execution-type: PARALLEL
182 - name: 'functest-smoke-cntt-docker-build-amd64-{stream}'
183 <<: *build-job-settings
184 - name: 'functest-benchmarking-cntt-docker-build-amd64-{stream}'
185 <<: *build-job-settings
187 name: 'publish all cntt manifests'
188 condition: SUCCESSFUL
189 execution-type: PARALLEL
191 - name: 'functest-smoke-cntt-docker-manifest-{stream}'
192 <<: *manifest-job-settings
193 - name: 'functest-benchmarking-cntt-docker-manifest-{stream}'
194 <<: *manifest-job-settings
197 - 'functest-amd64-recipients'
200 name: 'functest-{image}-docker-build-{arch_tag}-{stream}'
201 disabled: '{obj:disabled}'
203 - functest-job-parameters:
206 slave_label: '{slave_label}'
207 arch_tag: '{arch_tag}'
213 sudo amd64_dirs=docker/{image} arm64_dirs= arm_dirs= bash ./build.sh ;;
217 name: 'functest-{image}-docker-manifest-{stream}'
226 description: 'Slave label on Jenkins'
228 node-eligibility: 'ignore-offline'
232 description: "Project name used to enable job conditions"
235 default: https://gerrit.opnfv.org/gerrit/$PROJECT
236 description: 'Git URL to use on this Jenkins Slave'
240 description: "Repository name for functest images"
243 disabled: '{obj:disabled}'
254 sudo manifest-tool push from-args \
255 --platforms linux/amd64 \
256 --template $REPO/functest-{image}:ARCH-$tag \
257 --target $REPO/functest-{image}:$tag
262 name: functest-job-parameters
269 default: '{slave_label}'
270 description: 'Slave label on Jenkins'
272 node-eligibility: 'ignore-offline'
275 default: https://gerrit.opnfv.org/gerrit/$PROJECT
276 description: 'Git URL to use on this Jenkins Slave'
280 description: "To enable/disable pushing the image to Dockerhub."
284 description: "commit id to make a snapshot docker image"
288 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
291 default: "Dockerfile"
292 description: "Dockerfile to use for creating the image."
295 default: "{arch_tag}"
296 description: "If set, this value will be added to the docker image tag as a prefix"
300 description: "Project name used to enable job conditions"
304 description: "Repository name for functest images"
308 name: 'functest-amd64-recipients'
312 jalausuch@suse.com morgan.richomme@orange.com
313 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
314 juha.kosonen@nokia.com wangwulin@huawei.com
315 valentin.boucher@kontron.com