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
65 # settings for jobs run in multijob phases
66 build-job-settings: &build-job-settings
67 current-parameters: false
69 node-parameters: false
70 predefined-parameters: |
71 PUSH_IMAGE=$PUSH_IMAGE
73 GERRIT_REFNAME=$GERRIT_REFNAME
74 DOCKERFILE=$DOCKERFILE
75 kill-phase-on: FAILURE
78 manifest-job-settings: &manifest-job-settings
79 current-parameters: false
81 node-parameters: false
82 predefined-parameters:
83 GERRIT_REFNAME=$GERRIT_REFNAME
84 kill-phase-on: FAILURE
87 # yamllint enable rule:key-duplicates
89 - "functest-docker-{stream}"
90 - "functest-{image}-docker-build-{arch_tag}-{stream}"
91 - "functest-{image}-docker-manifest-{stream}"
93 ########################
95 ########################
97 name: 'functest-docker-{stream}'
99 project-type: multijob
101 disabled: '{obj:disabled}'
104 - functest-job-parameters:
107 slave_label: 'lf-build2'
121 - gerrit-trigger-tag-created:
126 name: 'build functest-core images'
127 execution-type: PARALLEL
129 - name: 'functest-core-docker-build-amd64-{stream}'
130 <<: *build-job-settings
132 name: 'publish functest-core manifests'
133 execution-type: PARALLEL
135 - name: 'functest-core-docker-manifest-{stream}'
136 <<: *manifest-job-settings
138 name: 'build functest-tempest images'
139 execution-type: PARALLEL
141 - name: 'functest-tempest-docker-build-amd64-{stream}'
142 <<: *build-job-settings
144 name: 'publish functest-tempest manifests'
145 execution-type: PARALLEL
147 - name: 'functest-tempest-docker-manifest-{stream}'
148 <<: *manifest-job-settings
150 name: 'build all functest images'
151 condition: SUCCESSFUL
152 execution-type: PARALLEL
154 - name: 'functest-healthcheck-docker-build-amd64-{stream}'
155 <<: *build-job-settings
156 - name: 'functest-smoke-docker-build-amd64-{stream}'
157 <<: *build-job-settings
158 - name: 'functest-benchmarking-docker-build-amd64-{stream}'
159 <<: *build-job-settings
160 - name: 'functest-vnf-docker-build-amd64-{stream}'
161 <<: *build-job-settings
162 - name: 'functest-features-docker-build-amd64-{stream}'
163 <<: *build-job-settings
165 name: 'publish all manifests'
166 condition: SUCCESSFUL
167 execution-type: PARALLEL
169 - name: 'functest-healthcheck-docker-manifest-{stream}'
170 <<: *manifest-job-settings
171 - name: 'functest-smoke-docker-manifest-{stream}'
172 <<: *manifest-job-settings
173 - name: 'functest-benchmarking-docker-manifest-{stream}'
174 <<: *manifest-job-settings
175 - name: 'functest-vnf-docker-manifest-{stream}'
176 <<: *manifest-job-settings
177 - name: 'functest-features-docker-manifest-{stream}'
178 <<: *manifest-job-settings
180 name: 'build all functest cntt images'
181 condition: SUCCESSFUL
182 execution-type: PARALLEL
184 - name: 'functest-smoke-cntt-docker-build-amd64-{stream}'
185 <<: *build-job-settings
186 - name: 'functest-benchmarking-cntt-docker-build-amd64-{stream}'
187 <<: *build-job-settings
189 name: 'publish all cntt manifests'
190 condition: SUCCESSFUL
191 execution-type: PARALLEL
193 - name: 'functest-smoke-cntt-docker-manifest-{stream}'
194 <<: *manifest-job-settings
195 - name: 'functest-benchmarking-cntt-docker-manifest-{stream}'
196 <<: *manifest-job-settings
199 - 'functest-amd64-recipients'
202 name: 'functest-{image}-docker-build-{arch_tag}-{stream}'
203 disabled: '{obj:disabled}'
205 - functest-job-parameters:
208 slave_label: '{slave_label}'
209 arch_tag: '{arch_tag}'
215 sudo amd64_dirs=docker/{image} arm64_dirs= arm_dirs= bash ./build.sh
219 name: 'functest-{image}-docker-manifest-{stream}'
228 description: 'Slave label on Jenkins'
230 node-eligibility: 'ignore-offline'
234 description: "Project name used to enable job conditions"
237 default: https://gerrit.opnfv.org/gerrit/$PROJECT
238 description: 'Git URL to use on this Jenkins Slave'
242 description: "Repository name for functest images"
245 disabled: '{obj:disabled}'
256 sudo manifest-tool push from-args \
257 --platforms linux/amd64 \
258 --template $REPO/functest-{image}:ARCH-$tag \
259 --target $REPO/functest-{image}:$tag
264 name: functest-job-parameters
271 default: '{slave_label}'
272 description: 'Slave label on Jenkins'
274 node-eligibility: 'ignore-offline'
277 default: https://gerrit.opnfv.org/gerrit/$PROJECT
278 description: 'Git URL to use on this Jenkins Slave'
282 description: "To enable/disable pushing the image to Dockerhub."
286 description: "commit id to make a snapshot docker image"
290 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
293 default: "Dockerfile"
294 description: "Dockerfile to use for creating the image."
297 default: "{arch_tag}"
298 description: "If set, this value will be added to the docker image tag as a prefix"
302 description: "Project name used to enable job conditions"
306 description: "Repository name for functest images"
310 name: 'functest-amd64-recipients'
314 jalausuch@suse.com morgan.richomme@orange.com
315 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
316 juha.kosonen@nokia.com wangwulin@huawei.com
317 valentin.boucher@kontron.com