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
41 predefined-parameters: |
42 PUSH_IMAGE=$PUSH_IMAGE
44 RELEASE_VERSION=$RELEASE_VERSION
45 DOCKERFILE=$DOCKERFILE
47 kill-phase-on: FAILURE
50 manifest-job-settings: &manifest-job-settings
51 current-parameters: false
54 predefined-parameters: |
55 RELEASE_VERSION=$RELEASE_VERSION
57 kill-phase-on: FAILURE
60 # yamllint enable rule:key-duplicates
62 - "functest-docker-{stream}"
63 - "functest-{image}-build-{arch_tag}-{stream}"
64 - "functest-{image}-manifest-{stream}"
66 ########################
68 ########################
70 name: 'functest-docker-{stream}'
72 project-type: multijob
74 disabled: '{obj:disabled}'
80 slave_label: 'opnfv-build-ubuntu'
85 description: "If set, this value will be added to the docker image tag as a prefix"
101 name: 'build functest-core images'
102 execution-type: PARALLEL
104 - name: 'functest-core-build-amd64-{stream}'
105 <<: *build-job-settings
106 - name: 'functest-core-build-arm64-{stream}'
107 <<: *build-job-settings
109 name: 'publish functest-core manifests'
110 execution-type: PARALLEL
112 - name: 'functest-core-manifest-{stream}'
113 <<: *manifest-job-settings
115 name: 'build all functest images'
116 condition: SUCCESSFUL
117 execution-type: PARALLEL
119 - name: 'functest-healthcheck-build-amd64-{stream}'
120 <<: *build-job-settings
121 - name: 'functest-healthcheck-build-arm64-{stream}'
122 <<: *build-job-settings
123 - name: 'functest-features-build-amd64-{stream}'
124 <<: *build-job-settings
125 - name: 'functest-features-build-arm64-{stream}'
126 <<: *build-job-settings
127 - name: 'functest-components-build-amd64-{stream}'
128 <<: *build-job-settings
129 - name: 'functest-components-build-arm64-{stream}'
130 <<: *build-job-settings
131 - name: 'functest-parser-build-amd64-{stream}'
132 <<: *build-job-settings
133 - name: 'functest-parser-build-arm64-{stream}'
134 <<: *build-job-settings
135 - name: 'functest-smoke-build-amd64-{stream}'
136 <<: *build-job-settings
137 - name: 'functest-smoke-build-arm64-{stream}'
138 <<: *build-job-settings
139 - name: 'functest-vnf-build-amd64-{stream}'
140 <<: *build-job-settings
141 - name: 'functest-restapi-build-amd64-{stream}'
142 <<: *build-job-settings
144 name: 'publish all manifests'
145 condition: SUCCESSFUL
146 execution-type: PARALLEL
148 - name: 'functest-healthcheck-manifest-{stream}'
149 <<: *manifest-job-settings
150 - name: 'functest-features-manifest-{stream}'
151 <<: *manifest-job-settings
152 - name: 'functest-components-manifest-{stream}'
153 <<: *manifest-job-settings
154 - name: 'functest-parser-manifest-{stream}'
155 <<: *manifest-job-settings
156 - name: 'functest-smoke-manifest-{stream}'
157 <<: *manifest-job-settings
158 - name: 'functest-vnf-manifest-{stream}'
159 <<: *manifest-job-settings
160 - name: 'functest-restapi-manifest-{stream}'
161 <<: *manifest-job-settings
164 - 'functest-amd64-recipients'
165 - 'functest-arm64-recipients'
168 name: 'functest-{image}-build-{arch_tag}-{stream}'
169 disabled: '{obj:disabled}'
174 slave_label: '{slave_label}'
175 arch_tag: '{arch_tag}'
183 sudo amd64_dirs= arm64_dirs=docker/{image} bash ./build.sh ;;
185 sudo amd64_dirs=docker/{image} arm64_dirs= bash ./build.sh ;;
190 name: 'functest-{image}-manifest-{stream}'
191 disabled: '{obj:disabled}'
203 sudo manifest-tool push from-args \
204 --platforms linux/amd64 \
205 --template opnfv/functest-{image}:ARCH-$tag \
206 --target opnfv/functest-{image}:$tag ;;
208 sudo manifest-tool push from-args \
209 --platforms linux/amd64,linux/arm64 \
210 --template opnfv/functest-{image}:ARCH-$tag \
211 --target opnfv/functest-{image}:$tag ;;
224 default: '{slave_label}'
225 description: 'Slave label on Jenkins'
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"
239 name: RELEASE_VERSION
241 description: "Docker tag to be built, e.g. 5.0.0, opnfv-5.0.0, 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 name: 'functest-arm64-recipients'
261 cristina.pauna@enea.com
262 alexandru.avadanii@enea.com
263 delia.popescu@enea.com
266 name: 'functest-amd64-recipients'
270 jalausuch@suse.com morgan.richomme@orange.com
271 cedric.ollivier@orange.com feng.xiaowei@zte.com.cn
272 juha.kosonen@nokia.com wangwulin@huawei.com