2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
9 project: functest-xtesting
18 slave_label: 'opnfv-build-ubuntu'
20 slave_label: 'opnfv-build-ubuntu-arm'
22 # settings for jobs run in multijob phases
23 build-job-settings: &build-job-settings
24 current-parameters: false
26 node-parameters: false
27 predefined-parameters: |
28 PUSH_IMAGE=$PUSH_IMAGE
30 GERRIT_REFNAME=$GERRIT_REFNAME
31 DOCKERFILE=$DOCKERFILE
32 kill-phase-on: FAILURE
35 manifest-job-settings: &manifest-job-settings
36 current-parameters: false
38 node-parameters: false
39 predefined-parameters:
40 GERRIT_REFNAME=$GERRIT_REFNAME
41 kill-phase-on: FAILURE
44 # yamllint enable rule:key-duplicates
46 - "xtesting-docker-{stream}"
47 - "xtesting-docker-build-{arch_tag}-{stream}"
48 - "xtesting-docker-manifest-{stream}"
50 ########################
52 ########################
54 name: 'xtesting-docker-{stream}'
56 project-type: multijob
58 disabled: '{obj:disabled}'
61 - xtesting-job-parameters:
64 slave_label: 'opnfv-build-ubuntu'
78 - gerrit-trigger-tag-created:
83 name: 'build xtesting images'
84 execution-type: PARALLEL
86 - name: 'xtesting-docker-build-amd64-{stream}'
87 <<: *build-job-settings
88 - name: 'xtesting-docker-build-arm64-{stream}'
89 <<: *build-job-settings
91 name: 'publish xtesting manifests'
92 execution-type: PARALLEL
94 - name: 'xtesting-docker-manifest-{stream}'
95 <<: *manifest-job-settings
98 - 'xtesting-amd64-recipients'
99 - 'xtesting-arm64-recipients'
102 name: 'xtesting-docker-build-{arch_tag}-{stream}'
103 disabled: '{obj:disabled}'
105 - xtesting-job-parameters:
108 slave_label: '{slave_label}'
109 arch_tag: '{arch_tag}'
115 sudo arch={arch_tag} bash ./build.sh
119 name: 'xtesting-docker-manifest-{stream}'
127 default: 'opnfv-build-ubuntu'
128 description: 'Slave label on Jenkins'
132 description: "Project name used to enable job conditions"
135 default: https://gerrit.opnfv.org/gerrit/$PROJECT
136 description: 'Git URL to use on this Jenkins Slave'
140 description: "Repository name for functest images"
143 disabled: '{obj:disabled}'
154 sudo manifest-tool push from-args \
155 --platforms linux/amd64,linux/arm64 \
156 --template $REPO/xtesting:ARCH-$tag \
157 --target $REPO/xtesting:$tag
161 name: xtesting-job-parameters
168 default: '{slave_label}'
169 description: 'Slave label on Jenkins'
172 default: https://gerrit.opnfv.org/gerrit/$PROJECT
173 description: 'Git URL to use on this Jenkins Slave'
177 description: "To enable/disable pushing the image to Dockerhub."
181 description: "commit id to make a snapshot docker image"
185 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
188 default: "Dockerfile"
189 description: "Dockerfile to use for creating the image."
192 default: "{arch_tag}"
193 description: "If set, this value will be added to the docker image tag as a prefix"
197 description: "Project name used to enable job conditions"
201 description: "Repository name for functest images"
205 name: 'xtesting-arm64-recipients'
209 cristina.pauna@enea.com
210 alexandru.avadanii@enea.com
211 delia.popescu@enea.com
214 name: 'xtesting-amd64-recipients'
218 jalausuch@suse.com morgan.richomme@orange.com
219 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
220 juha.kosonen@nokia.com wangwulin@huawei.com
221 valentin.boucher@kontron.com