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}'
30 slave_label: 'lf-build2'
32 slave_label: 'opnfv-build-ubuntu-arm'
48 # settings for jobs run in multijob phases
49 build-job-settings: &build-job-settings
50 current-parameters: false
52 node-parameters: false
53 predefined-parameters: |
54 PUSH_IMAGE=$PUSH_IMAGE
56 GERRIT_REFNAME=$GERRIT_REFNAME
57 DOCKERFILE=$DOCKERFILE
58 kill-phase-on: FAILURE
61 manifest-job-settings: &manifest-job-settings
62 current-parameters: false
64 node-parameters: false
65 predefined-parameters:
66 GERRIT_REFNAME=$GERRIT_REFNAME
67 kill-phase-on: FAILURE
70 # yamllint enable rule:key-duplicates
72 - "xtesting-docker-{stream}"
73 - "xtesting-{image}-docker-build-{arch_tag}-{stream}"
74 - "xtesting-{image}-docker-manifest-{stream}"
76 ########################
78 ########################
80 name: 'xtesting-docker-{stream}'
82 project-type: multijob
84 disabled: '{obj:disabled}'
87 - xtesting-job-parameters:
90 slave_label: 'lf-build2'
104 - gerrit-trigger-tag-created:
109 name: 'build xtesting images'
110 execution-type: PARALLEL
112 - name: 'xtesting-core-docker-build-amd64-{stream}'
113 <<: *build-job-settings
114 - name: 'xtesting-core-docker-build-arm64-{stream}'
115 <<: *build-job-settings
117 name: 'publish xtesting manifests'
118 execution-type: PARALLEL
120 - name: 'xtesting-core-docker-manifest-{stream}'
121 <<: *manifest-job-settings
123 name: 'build xtesting-mts images'
124 execution-type: PARALLEL
126 - name: 'xtesting-mts-docker-build-amd64-{stream}'
127 <<: *build-job-settings
128 - name: 'xtesting-mts-docker-build-arm64-{stream}'
129 <<: *build-job-settings
131 name: 'publish xtesting-mts manifests'
132 execution-type: PARALLEL
134 - name: 'xtesting-mts-docker-manifest-{stream}'
135 <<: *manifest-job-settings
139 - 'xtesting-amd64-recipients'
140 - 'xtesting-arm64-recipients'
143 name: 'xtesting-{image}-docker-build-{arch_tag}-{stream}'
144 disabled: '{obj:disabled}'
146 - xtesting-job-parameters:
149 slave_label: '{slave_label}'
150 arch_tag: '{arch_tag}'
158 sudo arch=arm64 amd64_dirs= arm64_dirs=docker/{image} arm_dirs= bash ./build.sh ;;
160 sudo arch=amd64 amd64_dirs=docker/{image} arm64_dirs= arm_dirs= bash ./build.sh ;;
165 name: 'xtesting-{image}-docker-manifest-{stream}'
174 description: 'Slave label on Jenkins'
176 node-eligibility: 'ignore-offline'
180 description: "Project name used to enable job conditions"
183 default: https://gerrit.opnfv.org/gerrit/$PROJECT
184 description: 'Git URL to use on this Jenkins Slave'
188 description: "Repository name for xtesting images"
191 disabled: '{obj:disabled}'
208 sudo manifest-tool push from-args \
209 --platforms linux/amd64,linux/arm64 \
210 --template $REPO/xtesting$img:ARCH-$tag \
211 --target $REPO/xtesting$img:$tag
215 name: xtesting-job-parameters
222 default: '{slave_label}'
223 description: 'Slave label on Jenkins'
225 node-eligibility: 'ignore-offline'
228 default: https://gerrit.opnfv.org/gerrit/$PROJECT
229 description: 'Git URL to use on this Jenkins Slave'
233 description: "To enable/disable pushing the image to Dockerhub."
237 description: "commit id to make a snapshot docker image"
241 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
244 default: "Dockerfile"
245 description: "Dockerfile to use for creating the image."
248 default: "{arch_tag}"
249 description: "If set, this value will be added to the docker image tag as a prefix"
253 description: "Project name used to enable job conditions"
257 description: "Repository name for xtesting images"
261 name: 'xtesting-arm64-recipients'
265 cristina.pauna@enea.com
266 alexandru.avadanii@enea.com
267 delia.popescu@enea.com
270 name: 'xtesting-amd64-recipients'
274 jalausuch@suse.com morgan.richomme@orange.com
275 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
276 juha.kosonen@nokia.com wangwulin@huawei.com
277 valentin.boucher@kontron.com