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 # settings for jobs run in multijob phases
26 build-job-settings: &build-job-settings
27 current-parameters: false
29 node-parameters: false
30 predefined-parameters: |
31 PUSH_IMAGE=$PUSH_IMAGE
32 CACHE_INVALIDATE=$CACHE_INVALIDATE
34 GERRIT_REFNAME=$GERRIT_REFNAME
35 kill-phase-on: FAILURE
38 manifest-job-settings: &manifest-job-settings
39 current-parameters: false
41 node-parameters: false
42 predefined-parameters:
43 GERRIT_REFNAME=$GERRIT_REFNAME
44 kill-phase-on: FAILURE
48 - "fuel-docker-{stream}"
49 - "fuel-docker-build-{arch_tag}-{stream}"
50 - "fuel-docker-manifest-{stream}"
52 ########################
54 ########################
56 name: 'fuel-docker-{stream}'
58 project-type: multijob
60 disabled: '{obj:disabled}'
63 - fuel-job-parameters:
66 slave_label: 'opnfv-build-ubuntu'
80 - gerrit-trigger-tag-created:
85 name: 'build fuel images'
86 execution-type: PARALLEL
88 - name: 'fuel-docker-build-amd64-{stream}'
89 <<: *build-job-settings
90 - name: 'fuel-docker-build-arm64-{stream}'
91 <<: *build-job-settings
93 name: 'publish fuel manifests'
95 execution-type: PARALLEL
97 - name: 'fuel-docker-manifest-{stream}'
98 <<: *manifest-job-settings
104 name: 'fuel-docker-build-{arch_tag}-{stream}'
105 disabled: '{obj:disabled}'
107 - fuel-job-parameters:
110 slave_label: '{slave_label}'
111 arch_tag: '{arch_tag}'
126 name: 'fuel-docker-manifest-{stream}'
134 default: 'opnfv-build-ubuntu'
135 description: 'Slave label on Jenkins'
137 node-eligibility: 'ignore-offline'
141 description: "Project name used to enable job conditions"
144 default: https://gerrit.opnfv.org/gerrit/$PROJECT
145 description: 'Git URL to use on this Jenkins Slave'
149 description: "Repository name for fuel-docker images"
152 disabled: '{obj:disabled}'
163 sudo manifest-tool push from-args \
164 --platforms linux/amd64,linux/arm64 \
165 --template $REPO/fuel:saltmaster-reclass-ARCH-$tag \
166 --target $REPO/fuel:saltmaster-reclass-$tag
171 name: fuel-job-parameters
178 default: '{slave_label}'
179 description: 'Slave label on Jenkins'
181 node-eligibility: 'ignore-offline'
184 default: https://gerrit.opnfv.org/gerrit/$PROJECT
185 description: 'Git URL to use on this Jenkins Slave'
189 description: "To enable/disable pushing the image to Dockerhub."
191 name: CACHE_INVALIDATE
193 description: "Set to any non-zero value to force a Docker cache cleanup"
197 description: "commit id to make a snapshot docker image"
201 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
205 description: "Project name used to enable job conditions"
209 description: "Repository name for fuel-docker images"