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'
49 # settings for jobs run in multijob phases
50 build-job-settings: &build-job-settings
51 current-parameters: false
53 node-parameters: false
54 predefined-parameters: |
55 PUSH_IMAGE=$PUSH_IMAGE
57 GERRIT_REFNAME=$GERRIT_REFNAME
58 DOCKERFILE=$DOCKERFILE
59 kill-phase-on: FAILURE
62 manifest-job-settings: &manifest-job-settings
63 current-parameters: false
65 node-parameters: false
66 predefined-parameters:
67 GERRIT_REFNAME=$GERRIT_REFNAME
68 kill-phase-on: FAILURE
71 # yamllint enable rule:key-duplicates
73 - "xtesting-docker-{stream}"
74 - "xtesting-{image}-docker-build-{arch_tag}-{stream}"
75 - "xtesting-{image}-docker-manifest-{stream}"
77 ########################
79 ########################
81 name: 'xtesting-docker-{stream}'
83 project-type: multijob
85 disabled: '{obj:disabled}'
88 - xtesting-job-parameters:
91 slave_label: 'lf-build2'
105 - gerrit-trigger-tag-created:
110 name: 'build xtesting images'
111 execution-type: PARALLEL
113 - name: 'xtesting-core-docker-build-amd64-{stream}'
114 <<: *build-job-settings
116 name: 'publish xtesting manifests'
117 execution-type: PARALLEL
119 - name: 'xtesting-core-docker-manifest-{stream}'
120 <<: *manifest-job-settings
122 name: 'build xtesting-mts images'
123 execution-type: PARALLEL
125 - name: 'xtesting-mts-docker-build-amd64-{stream}'
126 <<: *build-job-settings
128 name: 'publish xtesting-mts manifests'
129 execution-type: PARALLEL
131 - name: 'xtesting-mts-docker-manifest-{stream}'
132 <<: *manifest-job-settings
136 - 'xtesting-amd64-recipients'
139 name: 'xtesting-{image}-docker-build-{arch_tag}-{stream}'
140 disabled: '{obj:disabled}'
142 - xtesting-job-parameters:
145 slave_label: '{slave_label}'
146 arch_tag: '{arch_tag}'
152 sudo arch=amd64 amd64_dirs=docker/{image} arm64_dirs= arm_dirs= bash ./build.sh
156 name: 'xtesting-{image}-docker-manifest-{stream}'
165 description: 'Slave label on Jenkins'
167 node-eligibility: 'ignore-offline'
171 description: "Project name used to enable job conditions"
174 default: https://gerrit.opnfv.org/gerrit/$PROJECT
175 description: 'Git URL to use on this Jenkins Slave'
179 description: "Repository name for xtesting images"
182 disabled: '{obj:disabled}'
199 sudo manifest-tool push from-args \
200 --platforms linux/amd64 \
201 --template $REPO/xtesting$img:ARCH-$tag \
202 --target $REPO/xtesting$img:$tag
206 name: xtesting-job-parameters
213 default: '{slave_label}'
214 description: 'Slave label on Jenkins'
216 node-eligibility: 'ignore-offline'
219 default: https://gerrit.opnfv.org/gerrit/$PROJECT
220 description: 'Git URL to use on this Jenkins Slave'
224 description: "To enable/disable pushing the image to Dockerhub."
228 description: "commit id to make a snapshot docker image"
232 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
235 default: "Dockerfile"
236 description: "Dockerfile to use for creating the image."
239 default: "{arch_tag}"
240 description: "If set, this value will be added to the docker image tag as a prefix"
244 description: "Project name used to enable job conditions"
248 description: "Repository name for xtesting images"
252 name: 'xtesting-amd64-recipients'
256 jalausuch@suse.com morgan.richomme@orange.com
257 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
258 juha.kosonen@nokia.com wangwulin@huawei.com
259 valentin.boucher@kontron.com