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 RELEASE_VERSION=$RELEASE_VERSION
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 RELEASE_VERSION=$RELEASE_VERSION
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'
95 name: 'build functest-core images'
96 execution-type: PARALLEL
98 - name: 'functest-core-build-amd64-{stream}'
99 <<: *build-job-settings
100 - name: 'functest-core-build-arm64-{stream}'
101 <<: *build-job-settings
103 name: 'publish functest-core manifests'
104 execution-type: PARALLEL
106 - name: 'functest-core-manifest-{stream}'
107 <<: *manifest-job-settings
109 name: 'build all functest images'
110 condition: SUCCESSFUL
111 execution-type: PARALLEL
113 - name: 'functest-healthcheck-build-amd64-{stream}'
114 <<: *build-job-settings
115 - name: 'functest-healthcheck-build-arm64-{stream}'
116 <<: *build-job-settings
117 - name: 'functest-features-build-amd64-{stream}'
118 <<: *build-job-settings
119 - name: 'functest-features-build-arm64-{stream}'
120 <<: *build-job-settings
121 - name: 'functest-components-build-amd64-{stream}'
122 <<: *build-job-settings
123 - name: 'functest-components-build-arm64-{stream}'
124 <<: *build-job-settings
125 - name: 'functest-parser-build-amd64-{stream}'
126 <<: *build-job-settings
127 - name: 'functest-parser-build-arm64-{stream}'
128 <<: *build-job-settings
129 - name: 'functest-smoke-build-amd64-{stream}'
130 <<: *build-job-settings
131 - name: 'functest-smoke-build-arm64-{stream}'
132 <<: *build-job-settings
133 - name: 'functest-vnf-build-amd64-{stream}'
134 <<: *build-job-settings
135 - name: 'functest-restapi-build-amd64-{stream}'
136 <<: *build-job-settings
138 name: 'publish all manifests'
139 condition: SUCCESSFUL
140 execution-type: PARALLEL
142 - name: 'functest-healthcheck-manifest-{stream}'
143 <<: *manifest-job-settings
144 - name: 'functest-features-manifest-{stream}'
145 <<: *manifest-job-settings
146 - name: 'functest-components-manifest-{stream}'
147 <<: *manifest-job-settings
148 - name: 'functest-parser-manifest-{stream}'
149 <<: *manifest-job-settings
150 - name: 'functest-smoke-manifest-{stream}'
151 <<: *manifest-job-settings
152 - name: 'functest-vnf-manifest-{stream}'
153 <<: *manifest-job-settings
154 - name: 'functest-restapi-manifest-{stream}'
155 <<: *manifest-job-settings
158 - 'functest-amd64-recipients'
159 - 'functest-arm64-recipients'
162 name: 'functest-{image}-build-{arch_tag}-{stream}'
163 disabled: '{obj:disabled}'
168 slave_label: '{slave_label}'
169 arch_tag: '{arch_tag}'
177 sudo amd64_dirs= arm64_dirs=docker/{image} bash ./build.sh ;;
179 sudo amd64_dirs=docker/{image} arm64_dirs= bash ./build.sh ;;
184 name: 'functest-{image}-manifest-{stream}'
192 default: 'opnfv-build-ubuntu'
193 description: 'Slave label on Jenkins'
197 description: "Project name used to enable job conditions"
199 name: RELEASE_VERSION
201 description: "Docker tag to be built, e.g. 5.0.0, opnfv-5.0.0, 5.0.RC1"
204 default: https://gerrit.opnfv.org/gerrit/$PROJECT
205 description: 'Git URL to use on this Jenkins Slave'
207 disabled: '{obj:disabled}'
220 sudo manifest-tool push from-args \
221 --platforms linux/amd64 \
222 --template opnfv/functest-{image}:ARCH-$tag \
223 --target opnfv/functest-{image}:$tag ;;
225 sudo manifest-tool push from-args \
226 --platforms linux/amd64,linux/arm64 \
227 --template opnfv/functest-{image}:ARCH-$tag \
228 --target opnfv/functest-{image}:$tag ;;
241 default: '{slave_label}'
242 description: 'Slave label on Jenkins'
245 default: https://gerrit.opnfv.org/gerrit/$PROJECT
246 description: 'Git URL to use on this Jenkins Slave'
250 description: "To enable/disable pushing the image to Dockerhub."
254 description: "commit id to make a snapshot docker image"
256 name: RELEASE_VERSION
258 description: "Docker tag to be built, e.g. 5.0.0, opnfv-5.0.0, 5.0.RC1"
261 default: "Dockerfile"
262 description: "Dockerfile to use for creating the image."
265 default: "{arch_tag}"
266 description: "If set, this value will be added to the docker image tag as a prefix"
270 description: "Project name used to enable job conditions"
274 name: 'functest-arm64-recipients'
278 cristina.pauna@enea.com
279 alexandru.avadanii@enea.com
280 delia.popescu@enea.com
283 name: 'functest-amd64-recipients'
287 jalausuch@suse.com morgan.richomme@orange.com
288 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
289 juha.kosonen@nokia.com wangwulin@huawei.com