2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
7 name: functest-kubernetes-docker
9 project: functest-kubernetes
16 branch: 'stable/{stream}'
19 branch: 'stable/{stream}'
24 slave_label: 'opnfv-build-ubuntu'
26 slave_label: 'opnfv-build-ubuntu-arm'
28 # yamllint disable rule:key-duplicates
35 # settings for jobs run in multijob phases
36 build-job-settings: &build-job-settings
37 current-parameters: false
39 node-parameters: false
40 predefined-parameters: |
41 PUSH_IMAGE=$PUSH_IMAGE
43 GERRIT_REFNAME=$GERRIT_REFNAME
44 DOCKERFILE=$DOCKERFILE
45 kill-phase-on: FAILURE
48 manifest-job-settings: &manifest-job-settings
49 current-parameters: false
51 node-parameters: false
52 predefined-parameters:
53 GERRIT_REFNAME=$GERRIT_REFNAME
54 kill-phase-on: FAILURE
57 # yamllint enable rule:key-duplicates
59 - "functest-kubernetes-docker-{stream}"
60 - "functest-kubernetes-{image}-docker-build-{arch_tag}-{stream}"
61 - "functest-kubernetes-{image}-docker-manifest-{stream}"
63 ########################
65 ########################
67 name: 'functest-kubernetes-docker-{stream}'
69 project-type: multijob
71 disabled: '{obj:disabled}'
74 - functest-kubernetes-job-parameters:
77 slave_label: 'opnfv-build-ubuntu'
91 - gerrit-trigger-tag-created:
96 name: 'build functest-kubernetes-core images'
97 execution-type: PARALLEL
99 - name: 'functest-kubernetes-core-docker-build-amd64-{stream}'
100 <<: *build-job-settings
101 - name: 'functest-kubernetes-core-docker-build-arm64-{stream}'
102 <<: *build-job-settings
104 name: 'publish functest-kubernetes-core manifests'
105 execution-type: PARALLEL
107 - name: 'functest-kubernetes-core-docker-manifest-{stream}'
108 <<: *manifest-job-settings
110 name: 'build functest-kubernetes-healthcheck images'
111 execution-type: PARALLEL
113 - name: 'functest-kubernetes-healthcheck-docker-build-amd64-{stream}'
114 <<: *build-job-settings
115 - name: 'functest-kubernetes-healthcheck-docker-build-arm64-{stream}'
116 <<: *build-job-settings
118 name: 'publish functest-kubernetes-healthcheck manifests'
119 execution-type: PARALLEL
121 - name: 'functest-kubernetes-healthcheck-docker-manifest-{stream}'
122 <<: *manifest-job-settings
124 name: 'build all functest-kubernetes images'
125 condition: SUCCESSFUL
126 execution-type: PARALLEL
128 - name: 'functest-kubernetes-features-docker-build-amd64-{stream}'
129 <<: *build-job-settings
130 - name: 'functest-kubernetes-features-docker-build-arm64-{stream}'
131 <<: *build-job-settings
132 - name: 'functest-kubernetes-smoke-docker-build-amd64-{stream}'
133 <<: *build-job-settings
134 - name: 'functest-kubernetes-smoke-docker-build-arm64-{stream}'
135 <<: *build-job-settings
137 name: 'publish all manifests'
138 condition: SUCCESSFUL
139 execution-type: PARALLEL
141 - name: 'functest-kubernetes-features-docker-manifest-{stream}'
142 <<: *manifest-job-settings
143 - name: 'functest-kubernetes-smoke-docker-manifest-{stream}'
144 <<: *manifest-job-settings
147 - 'functest-kubernetes-amd64-recipients'
148 - 'functest-kubernetes-arm64-recipients'
151 name: 'functest-kubernetes-{image}-docker-build-{arch_tag}-{stream}'
152 disabled: '{obj:disabled}'
154 - functest-kubernetes-job-parameters:
157 slave_label: '{slave_label}'
158 arch_tag: '{arch_tag}'
166 sudo amd64_dirs= arm64_dirs=docker/{image} bash ./build.sh ;;
168 sudo amd64_dirs=docker/{image} arm64_dirs= bash ./build.sh ;;
173 name: 'functest-kubernetes-{image}-docker-manifest-{stream}'
181 default: 'opnfv-build-ubuntu'
182 description: 'Slave label on Jenkins'
184 node-eligibility: 'ignore-offline'
188 description: "Project name used to enable job conditions"
191 default: https://gerrit.opnfv.org/gerrit/$PROJECT
192 description: 'Git URL to use on this Jenkins Slave'
196 description: "Repository name for functest-kubernetes images"
199 disabled: '{obj:disabled}'
210 sudo manifest-tool push from-args \
211 --platforms linux/amd64,linux/arm64 \
212 --template $REPO/functest-kubernetes-{image}:ARCH-$tag \
213 --target $REPO/functest-kubernetes-{image}:$tag
218 name: functest-kubernetes-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 functest-kubernetes images"
264 name: 'functest-kubernetes-arm64-recipients'
268 cristina.pauna@enea.com
269 alexandru.avadanii@enea.com
270 delia.popescu@enea.com
273 name: 'functest-kubernetes-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