2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
16 branch: 'stable/{stream}'
21 slave_label: 'opnfv-build-ubuntu'
23 slave_label: 'opnfv-build-ubuntu-arm'
25 # yamllint disable rule:key-duplicates
36 # settings for jobs run in multijob phases
37 build-job-settings: &build-job-settings
38 current-parameters: false
40 node-parameters: false
41 predefined-parameters: |
42 PUSH_IMAGE=$PUSH_IMAGE
44 GERRIT_REFNAME=$GERRIT_REFNAME
45 DOCKERFILE=$DOCKERFILE
46 kill-phase-on: FAILURE
49 manifest-job-settings: &manifest-job-settings
50 current-parameters: false
52 node-parameters: false
53 predefined-parameters:
54 GERRIT_REFNAME=$GERRIT_REFNAME
55 kill-phase-on: FAILURE
58 # yamllint enable rule:key-duplicates
60 - "functest-docker-{stream}"
61 - "functest-{image}-build-{arch_tag}-{stream}"
62 - "functest-{image}-manifest-{stream}"
64 ########################
66 ########################
68 name: 'functest-docker-{stream}'
70 project-type: multijob
72 disabled: '{obj:disabled}'
78 slave_label: 'opnfv-build-ubuntu'
92 - gerrit-trigger-tag-created:
97 name: 'build functest-core images'
98 execution-type: PARALLEL
100 - name: 'functest-core-build-amd64-{stream}'
101 <<: *build-job-settings
102 - name: 'functest-core-build-arm64-{stream}'
103 <<: *build-job-settings
105 name: 'publish functest-core manifests'
106 execution-type: PARALLEL
108 - name: 'functest-core-manifest-{stream}'
109 <<: *manifest-job-settings
111 name: 'build all functest images'
112 condition: SUCCESSFUL
113 execution-type: PARALLEL
115 - name: 'functest-healthcheck-build-amd64-{stream}'
116 <<: *build-job-settings
117 - name: 'functest-healthcheck-build-arm64-{stream}'
118 <<: *build-job-settings
119 - name: 'functest-features-build-amd64-{stream}'
120 <<: *build-job-settings
121 - name: 'functest-features-build-arm64-{stream}'
122 <<: *build-job-settings
123 - name: 'functest-components-build-amd64-{stream}'
124 <<: *build-job-settings
125 - name: 'functest-components-build-arm64-{stream}'
126 <<: *build-job-settings
127 - name: 'functest-parser-build-amd64-{stream}'
128 <<: *build-job-settings
129 - name: 'functest-parser-build-arm64-{stream}'
130 <<: *build-job-settings
131 - name: 'functest-smoke-build-amd64-{stream}'
132 <<: *build-job-settings
133 - name: 'functest-smoke-build-arm64-{stream}'
134 <<: *build-job-settings
135 - name: 'functest-vnf-build-amd64-{stream}'
136 <<: *build-job-settings
137 - name: 'functest-restapi-build-amd64-{stream}'
138 <<: *build-job-settings
140 name: 'publish all manifests'
141 condition: SUCCESSFUL
142 execution-type: PARALLEL
144 - name: 'functest-healthcheck-manifest-{stream}'
145 <<: *manifest-job-settings
146 - name: 'functest-features-manifest-{stream}'
147 <<: *manifest-job-settings
148 - name: 'functest-components-manifest-{stream}'
149 <<: *manifest-job-settings
150 - name: 'functest-parser-manifest-{stream}'
151 <<: *manifest-job-settings
152 - name: 'functest-smoke-manifest-{stream}'
153 <<: *manifest-job-settings
154 - name: 'functest-vnf-manifest-{stream}'
155 <<: *manifest-job-settings
156 - name: 'functest-restapi-manifest-{stream}'
157 <<: *manifest-job-settings
160 - 'functest-amd64-recipients'
161 - 'functest-arm64-recipients'
164 name: 'functest-{image}-build-{arch_tag}-{stream}'
165 disabled: '{obj:disabled}'
170 slave_label: '{slave_label}'
171 arch_tag: '{arch_tag}'
179 sudo amd64_dirs= arm64_dirs=docker/{image} bash ./build.sh ;;
181 sudo amd64_dirs=docker/{image} arm64_dirs= bash ./build.sh ;;
186 name: 'functest-{image}-manifest-{stream}'
194 default: 'opnfv-build-ubuntu'
195 description: 'Slave label on Jenkins'
199 description: "Project name used to enable job conditions"
202 default: https://gerrit.opnfv.org/gerrit/$PROJECT
203 description: 'Git URL to use on this Jenkins Slave'
205 disabled: '{obj:disabled}'
218 sudo manifest-tool push from-args \
219 --platforms linux/amd64 \
220 --template opnfv/functest-{image}:ARCH-$tag \
221 --target opnfv/functest-{image}:$tag ;;
223 sudo manifest-tool push from-args \
224 --platforms linux/amd64,linux/arm64 \
225 --template opnfv/functest-{image}:ARCH-$tag \
226 --target opnfv/functest-{image}:$tag ;;
239 default: '{slave_label}'
240 description: 'Slave label on Jenkins'
243 default: https://gerrit.opnfv.org/gerrit/$PROJECT
244 description: 'Git URL to use on this Jenkins Slave'
248 description: "To enable/disable pushing the image to Dockerhub."
252 description: "commit id to make a snapshot docker image"
256 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
259 default: "Dockerfile"
260 description: "Dockerfile to use for creating the image."
263 default: "{arch_tag}"
264 description: "If set, this value will be added to the docker image tag as a prefix"
268 description: "Project name used to enable job conditions"
272 name: 'functest-arm64-recipients'
276 cristina.pauna@enea.com
277 alexandru.avadanii@enea.com
278 delia.popescu@enea.com
281 name: 'functest-amd64-recipients'
285 jalausuch@suse.com morgan.richomme@orange.com
286 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
287 juha.kosonen@nokia.com wangwulin@huawei.com