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
48 # settings for jobs run in multijob phases
49 build-job-settings: &build-job-settings
50 current-parameters: false
52 node-parameters: false
53 predefined-parameters: |
54 PUSH_IMAGE=$PUSH_IMAGE
56 GERRIT_REFNAME=$GERRIT_REFNAME
57 DOCKERFILE=$DOCKERFILE
58 kill-phase-on: FAILURE
61 manifest-job-settings: &manifest-job-settings
62 current-parameters: false
64 node-parameters: false
65 predefined-parameters:
66 GERRIT_REFNAME=$GERRIT_REFNAME
67 kill-phase-on: FAILURE
70 # yamllint enable rule:key-duplicates
72 - "functest-docker-{stream}"
73 - "functest-{image}-docker-build-{arch_tag}-{stream}"
74 - "functest-{image}-docker-manifest-{stream}"
76 ########################
78 ########################
80 name: 'functest-docker-{stream}'
82 project-type: multijob
84 disabled: '{obj:disabled}'
87 - functest-job-parameters:
90 slave_label: 'opnfv-build-ubuntu'
104 - gerrit-trigger-tag-created:
109 name: 'build functest-core images'
110 execution-type: PARALLEL
112 - name: 'functest-core-docker-build-amd64-{stream}'
113 <<: *build-job-settings
114 - name: 'functest-core-docker-build-arm64-{stream}'
115 <<: *build-job-settings
117 name: 'publish functest-core manifests'
118 execution-type: PARALLEL
120 - name: 'functest-core-docker-manifest-{stream}'
121 <<: *manifest-job-settings
123 name: 'build functest-tempest images'
124 execution-type: PARALLEL
126 - name: 'functest-tempest-docker-build-amd64-{stream}'
127 <<: *build-job-settings
128 - name: 'functest-tempest-docker-build-arm64-{stream}'
129 <<: *build-job-settings
131 name: 'publish functest-tempest manifests'
132 execution-type: PARALLEL
134 - name: 'functest-tempest-docker-manifest-{stream}'
135 <<: *manifest-job-settings
137 name: 'build all functest images'
138 condition: SUCCESSFUL
139 execution-type: PARALLEL
141 - name: 'functest-healthcheck-docker-build-amd64-{stream}'
142 <<: *build-job-settings
143 - name: 'functest-healthcheck-docker-build-arm64-{stream}'
144 <<: *build-job-settings
145 - name: 'functest-smoke-docker-build-amd64-{stream}'
146 <<: *build-job-settings
147 - name: 'functest-smoke-docker-build-arm64-{stream}'
148 <<: *build-job-settings
149 - name: 'functest-benchmarking-docker-build-amd64-{stream}'
150 <<: *build-job-settings
151 - name: 'functest-benchmarking-docker-build-arm64-{stream}'
152 <<: *build-job-settings
153 - name: 'functest-vnf-docker-build-amd64-{stream}'
154 <<: *build-job-settings
155 - name: 'functest-vnf-docker-build-arm64-{stream}'
156 <<: *build-job-settings
158 name: 'publish all manifests'
159 condition: SUCCESSFUL
160 execution-type: PARALLEL
162 - name: 'functest-healthcheck-docker-manifest-{stream}'
163 <<: *manifest-job-settings
164 - name: 'functest-smoke-docker-manifest-{stream}'
165 <<: *manifest-job-settings
166 - name: 'functest-benchmarking-docker-manifest-{stream}'
167 <<: *manifest-job-settings
168 - name: 'functest-vnf-docker-manifest-{stream}'
169 <<: *manifest-job-settings
171 name: 'build all functest cntt images'
172 condition: SUCCESSFUL
173 execution-type: PARALLEL
175 - name: 'functest-smoke-cntt-docker-build-amd64-{stream}'
176 <<: *build-job-settings
177 - name: 'functest-smoke-cntt-docker-build-arm64-{stream}'
178 <<: *build-job-settings
179 - name: 'functest-benchmarking-cntt-docker-build-amd64-{stream}'
180 <<: *build-job-settings
181 - name: 'functest-benchmarking-cntt-docker-build-arm64-{stream}'
182 <<: *build-job-settings
184 name: 'publish all cntt manifests'
185 condition: SUCCESSFUL
186 execution-type: PARALLEL
188 - name: 'functest-smoke-cntt-docker-manifest-{stream}'
189 <<: *manifest-job-settings
190 - name: 'functest-benchmarking-cntt-docker-manifest-{stream}'
191 <<: *manifest-job-settings
194 - 'functest-amd64-recipients'
195 - 'functest-arm64-recipients'
198 name: 'functest-{image}-docker-build-{arch_tag}-{stream}'
199 disabled: '{obj:disabled}'
201 - functest-job-parameters:
204 slave_label: '{slave_label}'
205 arch_tag: '{arch_tag}'
213 sudo amd64_dirs= arm64_dirs=docker/{image} arm_dirs= bash ./build.sh ;;
215 sudo amd64_dirs=docker/{image} arm64_dirs= arm_dirs= bash ./build.sh ;;
220 name: 'functest-{image}-docker-manifest-{stream}'
228 default: 'opnfv-build-ubuntu'
229 description: 'Slave label on Jenkins'
231 node-eligibility: 'ignore-offline'
235 description: "Project name used to enable job conditions"
238 default: https://gerrit.opnfv.org/gerrit/$PROJECT
239 description: 'Git URL to use on this Jenkins Slave'
243 description: "Repository name for functest images"
246 disabled: '{obj:disabled}'
257 sudo manifest-tool push from-args \
258 --platforms linux/amd64,linux/arm64 \
259 --template $REPO/functest-{image}:ARCH-$tag \
260 --target $REPO/functest-{image}:$tag
265 name: functest-job-parameters
272 default: '{slave_label}'
273 description: 'Slave label on Jenkins'
275 node-eligibility: 'ignore-offline'
278 default: https://gerrit.opnfv.org/gerrit/$PROJECT
279 description: 'Git URL to use on this Jenkins Slave'
283 description: "To enable/disable pushing the image to Dockerhub."
287 description: "commit id to make a snapshot docker image"
291 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
294 default: "Dockerfile"
295 description: "Dockerfile to use for creating the image."
298 default: "{arch_tag}"
299 description: "If set, this value will be added to the docker image tag as a prefix"
303 description: "Project name used to enable job conditions"
307 description: "Repository name for functest images"
311 name: 'functest-arm64-recipients'
315 cristina.pauna@enea.com
316 alexandru.avadanii@enea.com
317 delia.popescu@enea.com
320 name: 'functest-amd64-recipients'
324 jalausuch@suse.com morgan.richomme@orange.com
325 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
326 juha.kosonen@nokia.com wangwulin@huawei.com
327 valentin.boucher@kontron.com