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}'
27 slave_label: 'opnfv-build-ubuntu'
29 slave_label: 'opnfv-build-ubuntu-arm'
31 # settings for jobs run in multijob phases
32 build-job-settings: &build-job-settings
33 current-parameters: false
35 node-parameters: false
36 predefined-parameters: |
37 PUSH_IMAGE=$PUSH_IMAGE
39 GERRIT_REFNAME=$GERRIT_REFNAME
40 DOCKERFILE=$DOCKERFILE
41 kill-phase-on: FAILURE
44 manifest-job-settings: &manifest-job-settings
45 current-parameters: false
47 node-parameters: false
48 predefined-parameters:
49 GERRIT_REFNAME=$GERRIT_REFNAME
50 kill-phase-on: FAILURE
53 # yamllint enable rule:key-duplicates
55 - "xtesting-docker-{stream}"
56 - "xtesting-docker-build-{arch_tag}-{stream}"
57 - "xtesting-docker-manifest-{stream}"
59 ########################
61 ########################
63 name: 'xtesting-docker-{stream}'
65 project-type: multijob
67 disabled: '{obj:disabled}'
70 - xtesting-job-parameters:
73 slave_label: 'opnfv-build-ubuntu'
87 - gerrit-trigger-tag-created:
92 name: 'build xtesting images'
93 execution-type: PARALLEL
95 - name: 'xtesting-docker-build-amd64-{stream}'
96 <<: *build-job-settings
97 - name: 'xtesting-docker-build-arm64-{stream}'
98 <<: *build-job-settings
100 name: 'publish xtesting manifests'
101 execution-type: PARALLEL
103 - name: 'xtesting-docker-manifest-{stream}'
104 <<: *manifest-job-settings
107 - 'xtesting-amd64-recipients'
108 - 'xtesting-arm64-recipients'
111 name: 'xtesting-docker-build-{arch_tag}-{stream}'
112 disabled: '{obj:disabled}'
114 - xtesting-job-parameters:
117 slave_label: '{slave_label}'
118 arch_tag: '{arch_tag}'
124 sudo arch={arch_tag} bash ./build.sh
128 name: 'xtesting-docker-manifest-{stream}'
136 default: 'opnfv-build-ubuntu'
137 description: 'Slave label on Jenkins'
139 node-eligibility: 'ignore-offline'
143 description: "Project name used to enable job conditions"
146 default: https://gerrit.opnfv.org/gerrit/$PROJECT
147 description: 'Git URL to use on this Jenkins Slave'
151 description: "Repository name for functest images"
154 disabled: '{obj:disabled}'
165 sudo manifest-tool push from-args \
166 --platforms linux/amd64,linux/arm64 \
167 --template $REPO/xtesting:ARCH-$tag \
168 --target $REPO/xtesting:$tag
172 name: xtesting-job-parameters
179 default: '{slave_label}'
180 description: 'Slave label on Jenkins'
182 node-eligibility: 'ignore-offline'
185 default: https://gerrit.opnfv.org/gerrit/$PROJECT
186 description: 'Git URL to use on this Jenkins Slave'
190 description: "To enable/disable pushing the image to Dockerhub."
194 description: "commit id to make a snapshot docker image"
198 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
201 default: "Dockerfile"
202 description: "Dockerfile to use for creating the image."
205 default: "{arch_tag}"
206 description: "If set, this value will be added to the docker image tag as a prefix"
210 description: "Project name used to enable job conditions"
214 description: "Repository name for functest images"
218 name: 'xtesting-arm64-recipients'
222 cristina.pauna@enea.com
223 alexandru.avadanii@enea.com
224 delia.popescu@enea.com
227 name: 'xtesting-amd64-recipients'
231 jalausuch@suse.com morgan.richomme@orange.com
232 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
233 juha.kosonen@nokia.com wangwulin@huawei.com
234 valentin.boucher@kontron.com