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}'
22 branch: 'stable/{stream}'
27 slave_label: 'opnfv-build-ubuntu'
29 slave_label: 'opnfv-build-ubuntu-arm'
31 # yamllint disable rule:key-duplicates
37 # settings for jobs run in multijob phases
38 build-job-settings: &build-job-settings
39 current-parameters: false
41 node-parameters: false
42 predefined-parameters: |
43 PUSH_IMAGE=$PUSH_IMAGE
45 GERRIT_REFNAME=$GERRIT_REFNAME
46 DOCKERFILE=$DOCKERFILE
47 kill-phase-on: FAILURE
50 manifest-job-settings: &manifest-job-settings
51 current-parameters: false
53 node-parameters: false
54 predefined-parameters:
55 GERRIT_REFNAME=$GERRIT_REFNAME
56 kill-phase-on: FAILURE
59 # yamllint enable rule:key-duplicates
61 - "functest-kubernetes-docker-{stream}"
62 - "functest-kubernetes-{image}-docker-build-{arch_tag}-{stream}"
63 - "functest-kubernetes-{image}-docker-manifest-{stream}"
65 ########################
67 ########################
69 name: 'functest-kubernetes-docker-{stream}'
71 project-type: multijob
73 disabled: '{obj:disabled}'
76 - functest-kubernetes-job-parameters:
79 slave_label: 'opnfv-build-ubuntu'
93 - gerrit-trigger-tag-created:
98 name: 'build functest-kubernetes-core images'
99 execution-type: PARALLEL
101 - name: 'functest-kubernetes-core-docker-build-amd64-{stream}'
102 <<: *build-job-settings
103 - name: 'functest-kubernetes-core-docker-build-arm64-{stream}'
104 <<: *build-job-settings
106 name: 'publish functest-kubernetes-core manifests'
107 execution-type: PARALLEL
109 - name: 'functest-kubernetes-core-docker-manifest-{stream}'
110 <<: *manifest-job-settings
112 name: 'build functest-kubernetes-healthcheck images'
113 execution-type: PARALLEL
115 - name: 'functest-kubernetes-healthcheck-docker-build-amd64-{stream}'
116 <<: *build-job-settings
117 - name: 'functest-kubernetes-healthcheck-docker-build-arm64-{stream}'
118 <<: *build-job-settings
120 name: 'publish functest-kubernetes-healthcheck manifests'
121 execution-type: PARALLEL
123 - name: 'functest-kubernetes-healthcheck-docker-manifest-{stream}'
124 <<: *manifest-job-settings
126 name: 'build all functest-kubernetes images'
127 condition: SUCCESSFUL
128 execution-type: PARALLEL
130 - name: 'functest-kubernetes-smoke-docker-build-amd64-{stream}'
131 <<: *build-job-settings
132 - name: 'functest-kubernetes-smoke-docker-build-arm64-{stream}'
133 <<: *build-job-settings
135 name: 'publish all manifests'
136 condition: SUCCESSFUL
137 execution-type: PARALLEL
139 - name: 'functest-kubernetes-smoke-docker-manifest-{stream}'
140 <<: *manifest-job-settings
143 - 'functest-kubernetes-amd64-recipients'
144 - 'functest-kubernetes-arm64-recipients'
147 name: 'functest-kubernetes-{image}-docker-build-{arch_tag}-{stream}'
148 disabled: '{obj:disabled}'
150 - functest-kubernetes-job-parameters:
153 slave_label: '{slave_label}'
154 arch_tag: '{arch_tag}'
162 sudo amd64_dirs= arm64_dirs=docker/{image} bash ./build.sh ;;
164 sudo amd64_dirs=docker/{image} arm64_dirs= bash ./build.sh ;;
169 name: 'functest-kubernetes-{image}-docker-manifest-{stream}'
177 default: 'opnfv-build-ubuntu'
178 description: 'Slave label on Jenkins'
180 node-eligibility: 'ignore-offline'
184 description: "Project name used to enable job conditions"
187 default: https://gerrit.opnfv.org/gerrit/$PROJECT
188 description: 'Git URL to use on this Jenkins Slave'
192 description: "Repository name for functest-kubernetes images"
195 disabled: '{obj:disabled}'
206 sudo manifest-tool push from-args \
207 --platforms linux/amd64,linux/arm64 \
208 --template $REPO/functest-kubernetes-{image}:ARCH-$tag \
209 --target $REPO/functest-kubernetes-{image}:$tag
214 name: functest-kubernetes-job-parameters
221 default: '{slave_label}'
222 description: 'Slave label on Jenkins'
224 node-eligibility: 'ignore-offline'
227 default: https://gerrit.opnfv.org/gerrit/$PROJECT
228 description: 'Git URL to use on this Jenkins Slave'
232 description: "To enable/disable pushing the image to Dockerhub."
236 description: "commit id to make a snapshot docker image"
240 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
243 default: "Dockerfile"
244 description: "Dockerfile to use for creating the image."
247 default: "{arch_tag}"
248 description: "If set, this value will be added to the docker image tag as a prefix"
252 description: "Project name used to enable job conditions"
256 description: "Repository name for functest-kubernetes images"
260 name: 'functest-kubernetes-arm64-recipients'
264 cristina.pauna@enea.com
265 alexandru.avadanii@enea.com
266 delia.popescu@enea.com
269 name: 'functest-kubernetes-amd64-recipients'
273 jalausuch@suse.com morgan.richomme@orange.com
274 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
275 juha.kosonen@nokia.com wangwulin@huawei.com
276 valentin.boucher@kontron.com