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}'
28 branch: 'stable/{stream}'
33 slave_label: 'lf-build2'
35 slave_label: 'opnfv-build-ubuntu-arm'
51 # settings for jobs run in multijob phases
52 build-job-settings: &build-job-settings
53 current-parameters: false
55 node-parameters: false
56 predefined-parameters: |
57 PUSH_IMAGE=$PUSH_IMAGE
59 GERRIT_REFNAME=$GERRIT_REFNAME
60 DOCKERFILE=$DOCKERFILE
61 kill-phase-on: FAILURE
64 manifest-job-settings: &manifest-job-settings
65 current-parameters: false
67 node-parameters: false
68 predefined-parameters:
69 GERRIT_REFNAME=$GERRIT_REFNAME
70 kill-phase-on: FAILURE
73 # yamllint enable rule:key-duplicates
75 - "xtesting-docker-{stream}"
76 - "xtesting-{image}-docker-build-{arch_tag}-{stream}"
77 - "xtesting-{image}-docker-manifest-{stream}"
79 ########################
81 ########################
83 name: 'xtesting-docker-{stream}'
85 project-type: multijob
87 disabled: '{obj:disabled}'
90 - xtesting-job-parameters:
93 slave_label: 'lf-build2'
107 - gerrit-trigger-tag-created:
112 name: 'build xtesting images'
113 execution-type: PARALLEL
115 - name: 'xtesting-core-docker-build-amd64-{stream}'
116 <<: *build-job-settings
117 - name: 'xtesting-core-docker-build-arm64-{stream}'
118 <<: *build-job-settings
120 name: 'publish xtesting manifests'
121 execution-type: PARALLEL
123 - name: 'xtesting-core-docker-manifest-{stream}'
124 <<: *manifest-job-settings
126 name: 'build xtesting-mts images'
127 execution-type: PARALLEL
129 - name: 'xtesting-mts-docker-build-amd64-{stream}'
130 <<: *build-job-settings
131 - name: 'xtesting-mts-docker-build-arm64-{stream}'
132 <<: *build-job-settings
134 name: 'publish xtesting-mts manifests'
135 execution-type: PARALLEL
137 - name: 'xtesting-mts-docker-manifest-{stream}'
138 <<: *manifest-job-settings
142 - 'xtesting-amd64-recipients'
143 - 'xtesting-arm64-recipients'
146 name: 'xtesting-{image}-docker-build-{arch_tag}-{stream}'
147 disabled: '{obj:disabled}'
149 - xtesting-job-parameters:
152 slave_label: '{slave_label}'
153 arch_tag: '{arch_tag}'
161 sudo arch=arm64 amd64_dirs= arm64_dirs=docker/{image} arm_dirs= bash ./build.sh ;;
163 sudo arch=amd64 amd64_dirs=docker/{image} arm64_dirs= arm_dirs= bash ./build.sh ;;
168 name: 'xtesting-{image}-docker-manifest-{stream}'
177 description: 'Slave label on Jenkins'
179 node-eligibility: 'ignore-offline'
183 description: "Project name used to enable job conditions"
186 default: https://gerrit.opnfv.org/gerrit/$PROJECT
187 description: 'Git URL to use on this Jenkins Slave'
191 description: "Repository name for xtesting images"
194 disabled: '{obj:disabled}'
211 sudo manifest-tool push from-args \
212 --platforms linux/amd64,linux/arm64 \
213 --template $REPO/xtesting$img:ARCH-$tag \
214 --target $REPO/xtesting$img:$tag
218 name: xtesting-job-parameters
225 default: '{slave_label}'
226 description: 'Slave label on Jenkins'
228 node-eligibility: 'ignore-offline'
231 default: https://gerrit.opnfv.org/gerrit/$PROJECT
232 description: 'Git URL to use on this Jenkins Slave'
236 description: "To enable/disable pushing the image to Dockerhub."
240 description: "commit id to make a snapshot docker image"
244 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
247 default: "Dockerfile"
248 description: "Dockerfile to use for creating the image."
251 default: "{arch_tag}"
252 description: "If set, this value will be added to the docker image tag as a prefix"
256 description: "Project name used to enable job conditions"
260 description: "Repository name for xtesting images"
264 name: 'xtesting-arm64-recipients'
268 cristina.pauna@enea.com
269 alexandru.avadanii@enea.com
270 delia.popescu@enea.com
273 name: 'xtesting-amd64-recipients'
277 jalausuch@suse.com morgan.richomme@orange.com
278 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
279 juha.kosonen@nokia.com wangwulin@huawei.com
280 valentin.boucher@kontron.com