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
50 # settings for jobs run in multijob phases
51 build-job-settings: &build-job-settings
52 current-parameters: false
54 node-parameters: false
55 predefined-parameters: |
56 PUSH_IMAGE=$PUSH_IMAGE
58 GERRIT_REFNAME=$GERRIT_REFNAME
59 DOCKERFILE=$DOCKERFILE
60 kill-phase-on: FAILURE
63 manifest-job-settings: &manifest-job-settings
64 current-parameters: false
66 node-parameters: false
67 predefined-parameters:
68 GERRIT_REFNAME=$GERRIT_REFNAME
69 kill-phase-on: FAILURE
72 # yamllint enable rule:key-duplicates
74 - "functest-docker-{stream}"
75 - "functest-{image}-docker-build-{arch_tag}-{stream}"
76 - "functest-{image}-docker-manifest-{stream}"
78 ########################
80 ########################
82 name: 'functest-docker-{stream}'
84 project-type: multijob
86 disabled: '{obj:disabled}'
89 - functest-job-parameters:
92 slave_label: 'opnfv-build-ubuntu'
106 - gerrit-trigger-tag-created:
111 name: 'build functest-core images'
112 execution-type: PARALLEL
114 - name: 'functest-core-docker-build-amd64-{stream}'
115 <<: *build-job-settings
116 - name: 'functest-core-docker-build-arm64-{stream}'
117 <<: *build-job-settings
119 name: 'publish functest-core manifests'
120 execution-type: PARALLEL
122 - name: 'functest-core-docker-manifest-{stream}'
123 <<: *manifest-job-settings
125 name: 'build functest-tempest images'
126 execution-type: PARALLEL
128 - name: 'functest-tempest-docker-build-amd64-{stream}'
129 <<: *build-job-settings
130 - name: 'functest-tempest-docker-build-arm64-{stream}'
131 <<: *build-job-settings
133 name: 'publish functest-tempest manifests'
134 execution-type: PARALLEL
136 - name: 'functest-tempest-docker-manifest-{stream}'
137 <<: *manifest-job-settings
139 name: 'build all functest images'
140 condition: SUCCESSFUL
141 execution-type: PARALLEL
143 - name: 'functest-healthcheck-docker-build-amd64-{stream}'
144 <<: *build-job-settings
145 - name: 'functest-healthcheck-docker-build-arm64-{stream}'
146 <<: *build-job-settings
147 - name: 'functest-features-docker-build-amd64-{stream}'
148 <<: *build-job-settings
149 - name: 'functest-features-docker-build-arm64-{stream}'
150 <<: *build-job-settings
151 - name: 'functest-components-docker-build-amd64-{stream}'
152 <<: *build-job-settings
153 - name: 'functest-components-docker-build-arm64-{stream}'
154 <<: *build-job-settings
155 - name: 'functest-smoke-docker-build-amd64-{stream}'
156 <<: *build-job-settings
157 - name: 'functest-smoke-docker-build-arm64-{stream}'
158 <<: *build-job-settings
159 - name: 'functest-benchmarking-docker-build-amd64-{stream}'
160 <<: *build-job-settings
161 - name: 'functest-benchmarking-docker-build-arm64-{stream}'
162 <<: *build-job-settings
163 - name: 'functest-vnf-docker-build-amd64-{stream}'
164 <<: *build-job-settings
165 - name: 'functest-vnf-docker-build-arm64-{stream}'
166 <<: *build-job-settings
168 name: 'publish all manifests'
169 condition: SUCCESSFUL
170 execution-type: PARALLEL
172 - name: 'functest-healthcheck-docker-manifest-{stream}'
173 <<: *manifest-job-settings
174 - name: 'functest-features-docker-manifest-{stream}'
175 <<: *manifest-job-settings
176 - name: 'functest-components-docker-manifest-{stream}'
177 <<: *manifest-job-settings
178 - name: 'functest-smoke-docker-manifest-{stream}'
179 <<: *manifest-job-settings
180 - name: 'functest-benchmarking-docker-manifest-{stream}'
181 <<: *manifest-job-settings
182 - name: 'functest-vnf-docker-manifest-{stream}'
183 <<: *manifest-job-settings
186 - 'functest-amd64-recipients'
187 - 'functest-arm64-recipients'
190 name: 'functest-{image}-docker-build-{arch_tag}-{stream}'
191 disabled: '{obj:disabled}'
193 - functest-job-parameters:
196 slave_label: '{slave_label}'
197 arch_tag: '{arch_tag}'
205 sudo amd64_dirs= arm64_dirs=docker/{image} bash ./build.sh ;;
207 sudo amd64_dirs=docker/{image} arm64_dirs= bash ./build.sh ;;
212 name: 'functest-{image}-docker-manifest-{stream}'
220 default: 'opnfv-build-ubuntu'
221 description: 'Slave label on Jenkins'
223 node-eligibility: 'ignore-offline'
227 description: "Project name used to enable job conditions"
230 default: https://gerrit.opnfv.org/gerrit/$PROJECT
231 description: 'Git URL to use on this Jenkins Slave'
235 description: "Repository name for functest images"
238 disabled: '{obj:disabled}'
249 sudo manifest-tool push from-args \
250 --platforms linux/amd64,linux/arm64 \
251 --template $REPO/functest-{image}:ARCH-$tag \
252 --target $REPO/functest-{image}:$tag
257 name: functest-job-parameters
264 default: '{slave_label}'
265 description: 'Slave label on Jenkins'
267 node-eligibility: 'ignore-offline'
270 default: https://gerrit.opnfv.org/gerrit/$PROJECT
271 description: 'Git URL to use on this Jenkins Slave'
275 description: "To enable/disable pushing the image to Dockerhub."
279 description: "commit id to make a snapshot docker image"
283 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
286 default: "Dockerfile"
287 description: "Dockerfile to use for creating the image."
290 default: "{arch_tag}"
291 description: "If set, this value will be added to the docker image tag as a prefix"
295 description: "Project name used to enable job conditions"
299 description: "Repository name for functest images"
303 name: 'functest-arm64-recipients'
307 cristina.pauna@enea.com
308 alexandru.avadanii@enea.com
309 delia.popescu@enea.com
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