2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
9 project: functest-xtesting
16 branch: 'stable/{stream}'
21 slave_label: 'opnfv-build-ubuntu'
23 slave_label: 'opnfv-build-ubuntu-arm'
25 # settings for jobs run in multijob phases
26 build-job-settings: &build-job-settings
27 current-parameters: false
29 node-parameters: false
30 predefined-parameters: |
31 PUSH_IMAGE=$PUSH_IMAGE
33 GERRIT_REFNAME=$GERRIT_REFNAME
34 DOCKERFILE=$DOCKERFILE
35 kill-phase-on: FAILURE
38 manifest-job-settings: &manifest-job-settings
39 current-parameters: false
41 node-parameters: false
42 predefined-parameters:
43 GERRIT_REFNAME=$GERRIT_REFNAME
44 kill-phase-on: FAILURE
47 # yamllint enable rule:key-duplicates
49 - "xtesting-docker-{stream}"
50 - "xtesting-docker-build-{arch_tag}-{stream}"
51 - "xtesting-docker-manifest-{stream}"
53 ########################
55 ########################
57 name: 'xtesting-docker-{stream}'
59 project-type: multijob
61 disabled: '{obj:disabled}'
64 - xtesting-job-parameters:
67 slave_label: 'opnfv-build-ubuntu'
81 - gerrit-trigger-tag-created:
86 name: 'build xtesting images'
87 execution-type: PARALLEL
89 - name: 'xtesting-docker-build-amd64-{stream}'
90 <<: *build-job-settings
91 - name: 'xtesting-docker-build-arm64-{stream}'
92 <<: *build-job-settings
94 name: 'publish xtesting manifests'
95 execution-type: PARALLEL
97 - name: 'xtesting-docker-manifest-{stream}'
98 <<: *manifest-job-settings
101 - 'xtesting-amd64-recipients'
102 - 'xtesting-arm64-recipients'
105 name: 'xtesting-docker-build-{arch_tag}-{stream}'
106 disabled: '{obj:disabled}'
108 - xtesting-job-parameters:
111 slave_label: '{slave_label}'
112 arch_tag: '{arch_tag}'
118 sudo arch={arch_tag} bash ./build.sh
122 name: 'xtesting-docker-manifest-{stream}'
130 default: 'opnfv-build-ubuntu'
131 description: 'Slave label on Jenkins'
135 description: "Project name used to enable job conditions"
138 default: https://gerrit.opnfv.org/gerrit/$PROJECT
139 description: 'Git URL to use on this Jenkins Slave'
143 description: "Repository name for functest images"
146 disabled: '{obj:disabled}'
157 sudo manifest-tool push from-args \
158 --platforms linux/amd64,linux/arm64 \
159 --template $REPO/xtesting:ARCH-$tag \
160 --target $REPO/xtesting:$tag
164 name: xtesting-job-parameters
171 default: '{slave_label}'
172 description: 'Slave label on Jenkins'
175 default: https://gerrit.opnfv.org/gerrit/$PROJECT
176 description: 'Git URL to use on this Jenkins Slave'
180 description: "To enable/disable pushing the image to Dockerhub."
184 description: "commit id to make a snapshot docker image"
188 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
191 default: "Dockerfile"
192 description: "Dockerfile to use for creating the image."
195 default: "{arch_tag}"
196 description: "If set, this value will be added to the docker image tag as a prefix"
200 description: "Project name used to enable job conditions"
204 description: "Repository name for functest images"
208 name: 'xtesting-arm64-recipients'
212 cristina.pauna@enea.com
213 alexandru.avadanii@enea.com
214 delia.popescu@enea.com
217 name: 'xtesting-amd64-recipients'
221 jalausuch@suse.com morgan.richomme@orange.com
222 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
223 juha.kosonen@nokia.com wangwulin@huawei.com
224 valentin.boucher@kontron.com