2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
9 project: functest-xtesting
16 branch: 'stable/{stream}'
19 branch: 'stable/{stream}'
22 branch: 'stable/{stream}'
25 branch: 'stable/{stream}'
30 slave_label: 'lf-build2'
32 slave_label: 'opnfv-build-ubuntu-arm'
34 # settings for jobs run in multijob phases
35 build-job-settings: &build-job-settings
36 current-parameters: false
38 node-parameters: false
39 predefined-parameters: |
40 PUSH_IMAGE=$PUSH_IMAGE
42 GERRIT_REFNAME=$GERRIT_REFNAME
43 DOCKERFILE=$DOCKERFILE
44 kill-phase-on: FAILURE
47 manifest-job-settings: &manifest-job-settings
48 current-parameters: false
50 node-parameters: false
51 predefined-parameters:
52 GERRIT_REFNAME=$GERRIT_REFNAME
53 kill-phase-on: FAILURE
56 # yamllint enable rule:key-duplicates
58 - "xtesting-docker-{stream}"
59 - "xtesting-docker-build-{arch_tag}-{stream}"
60 - "xtesting-docker-manifest-{stream}"
62 ########################
64 ########################
66 name: 'xtesting-docker-{stream}'
68 project-type: multijob
70 disabled: '{obj:disabled}'
73 - xtesting-job-parameters:
76 slave_label: 'lf-build2'
90 - gerrit-trigger-tag-created:
95 name: 'build xtesting images'
96 execution-type: PARALLEL
98 - name: 'xtesting-docker-build-amd64-{stream}'
99 <<: *build-job-settings
100 - name: 'xtesting-docker-build-arm64-{stream}'
101 <<: *build-job-settings
103 name: 'publish xtesting manifests'
104 execution-type: PARALLEL
106 - name: 'xtesting-docker-manifest-{stream}'
107 <<: *manifest-job-settings
110 - 'xtesting-amd64-recipients'
111 - 'xtesting-arm64-recipients'
114 name: 'xtesting-docker-build-{arch_tag}-{stream}'
115 disabled: '{obj:disabled}'
117 - xtesting-job-parameters:
120 slave_label: '{slave_label}'
121 arch_tag: '{arch_tag}'
127 sudo arch={arch_tag} bash ./build.sh
131 name: 'xtesting-docker-manifest-{stream}'
140 description: 'Slave label on Jenkins'
142 node-eligibility: 'ignore-offline'
146 description: "Project name used to enable job conditions"
149 default: https://gerrit.opnfv.org/gerrit/$PROJECT
150 description: 'Git URL to use on this Jenkins Slave'
154 description: "Repository name for functest images"
157 disabled: '{obj:disabled}'
168 sudo manifest-tool push from-args \
169 --platforms linux/amd64,linux/arm64 \
170 --template $REPO/xtesting:ARCH-$tag \
171 --target $REPO/xtesting:$tag
175 name: xtesting-job-parameters
182 default: '{slave_label}'
183 description: 'Slave label on Jenkins'
185 node-eligibility: 'ignore-offline'
188 default: https://gerrit.opnfv.org/gerrit/$PROJECT
189 description: 'Git URL to use on this Jenkins Slave'
193 description: "To enable/disable pushing the image to Dockerhub."
197 description: "commit id to make a snapshot docker image"
201 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
204 default: "Dockerfile"
205 description: "Dockerfile to use for creating the image."
208 default: "{arch_tag}"
209 description: "If set, this value will be added to the docker image tag as a prefix"
213 description: "Project name used to enable job conditions"
217 description: "Repository name for functest images"
221 name: 'xtesting-arm64-recipients'
225 cristina.pauna@enea.com
226 alexandru.avadanii@enea.com
227 delia.popescu@enea.com
230 name: 'xtesting-amd64-recipients'
234 jalausuch@suse.com morgan.richomme@orange.com
235 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
236 juha.kosonen@nokia.com wangwulin@huawei.com
237 valentin.boucher@kontron.com