2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
9 project: functest-xtesting
16 branch: 'stable/{stream}'
19 branch: 'stable/{stream}'
24 slave_label: 'opnfv-build-ubuntu'
26 slave_label: 'opnfv-build-ubuntu-arm'
28 # settings for jobs run in multijob phases
29 build-job-settings: &build-job-settings
30 current-parameters: false
32 node-parameters: false
33 predefined-parameters: |
34 PUSH_IMAGE=$PUSH_IMAGE
36 GERRIT_REFNAME=$GERRIT_REFNAME
37 DOCKERFILE=$DOCKERFILE
38 kill-phase-on: FAILURE
41 manifest-job-settings: &manifest-job-settings
42 current-parameters: false
44 node-parameters: false
45 predefined-parameters:
46 GERRIT_REFNAME=$GERRIT_REFNAME
47 kill-phase-on: FAILURE
50 # yamllint enable rule:key-duplicates
52 - "xtesting-docker-{stream}"
53 - "xtesting-docker-build-{arch_tag}-{stream}"
54 - "xtesting-docker-manifest-{stream}"
56 ########################
58 ########################
60 name: 'xtesting-docker-{stream}'
62 project-type: multijob
64 disabled: '{obj:disabled}'
67 - xtesting-job-parameters:
70 slave_label: 'opnfv-build-ubuntu'
84 - gerrit-trigger-tag-created:
89 name: 'build xtesting images'
90 execution-type: PARALLEL
92 - name: 'xtesting-docker-build-amd64-{stream}'
93 <<: *build-job-settings
94 - name: 'xtesting-docker-build-arm64-{stream}'
95 <<: *build-job-settings
97 name: 'publish xtesting manifests'
98 execution-type: PARALLEL
100 - name: 'xtesting-docker-manifest-{stream}'
101 <<: *manifest-job-settings
104 - 'xtesting-amd64-recipients'
105 - 'xtesting-arm64-recipients'
108 name: 'xtesting-docker-build-{arch_tag}-{stream}'
109 disabled: '{obj:disabled}'
111 - xtesting-job-parameters:
114 slave_label: '{slave_label}'
115 arch_tag: '{arch_tag}'
121 sudo arch={arch_tag} bash ./build.sh
125 name: 'xtesting-docker-manifest-{stream}'
133 default: 'opnfv-build-ubuntu'
134 description: 'Slave label on Jenkins'
136 node-eligibility: 'ignore-offline'
140 description: "Project name used to enable job conditions"
143 default: https://gerrit.opnfv.org/gerrit/$PROJECT
144 description: 'Git URL to use on this Jenkins Slave'
148 description: "Repository name for functest images"
151 disabled: '{obj:disabled}'
162 sudo manifest-tool push from-args \
163 --platforms linux/amd64,linux/arm64 \
164 --template $REPO/xtesting:ARCH-$tag \
165 --target $REPO/xtesting:$tag
169 name: xtesting-job-parameters
176 default: '{slave_label}'
177 description: 'Slave label on Jenkins'
179 node-eligibility: 'ignore-offline'
182 default: https://gerrit.opnfv.org/gerrit/$PROJECT
183 description: 'Git URL to use on this Jenkins Slave'
187 description: "To enable/disable pushing the image to Dockerhub."
191 description: "commit id to make a snapshot docker image"
195 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
198 default: "Dockerfile"
199 description: "Dockerfile to use for creating the image."
202 default: "{arch_tag}"
203 description: "If set, this value will be added to the docker image tag as a prefix"
207 description: "Project name used to enable job conditions"
211 description: "Repository name for functest images"
215 name: 'xtesting-arm64-recipients'
219 cristina.pauna@enea.com
220 alexandru.avadanii@enea.com
221 delia.popescu@enea.com
224 name: 'xtesting-amd64-recipients'
228 jalausuch@suse.com morgan.richomme@orange.com
229 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
230 juha.kosonen@nokia.com wangwulin@huawei.com
231 valentin.boucher@kontron.com