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
33 GERRIT_REFNAME=$GERRIT_REFNAME
34 kill-phase-on: FAILURE
37 manifest-job-settings: &manifest-job-settings
38 current-parameters: false
40 node-parameters: false
41 predefined-parameters:
42 GERRIT_REFNAME=$GERRIT_REFNAME
43 kill-phase-on: FAILURE
47 - "fuel-docker-{stream}"
48 - "fuel-docker-build-{arch_tag}-{stream}"
49 - "fuel-docker-manifest-{stream}"
51 ########################
53 ########################
55 name: 'fuel-docker-{stream}'
57 project-type: multijob
59 disabled: '{obj:disabled}'
62 - fuel-job-parameters:
65 slave_label: 'opnfv-build-ubuntu'
79 - gerrit-trigger-tag-created:
84 name: 'build fuel images'
85 execution-type: PARALLEL
87 - name: 'fuel-docker-build-amd64-{stream}'
88 <<: *build-job-settings
89 - name: 'fuel-docker-build-arm64-{stream}'
90 <<: *build-job-settings
92 name: 'publish fuel manifests'
94 execution-type: PARALLEL
96 - name: 'fuel-docker-manifest-{stream}'
97 <<: *manifest-job-settings
103 name: 'fuel-docker-build-{arch_tag}-{stream}'
104 disabled: '{obj:disabled}'
106 - fuel-job-parameters:
109 slave_label: '{slave_label}'
110 arch_tag: '{arch_tag}'
125 name: 'fuel-docker-manifest-{stream}'
133 default: 'opnfv-build-ubuntu'
134 description: 'Slave label on Jenkins'
136 node-eligibility: 'ignore-offline'
140 description: "Project name used to enable job conditions"
143 default: https://gerrit.opnfv.org/gerrit/$PROJECT
144 description: 'Git URL to use on this Jenkins Slave'
148 description: "Repository name for fuel-docker images"
151 disabled: '{obj:disabled}'
162 sudo manifest-tool push from-args \
163 --platforms linux/amd64,linux/arm64 \
164 --template $REPO/fuel:saltmaster-reclass-ARCH-$tag \
165 --target $REPO/fuel:saltmaster-reclass-$tag
170 name: fuel-job-parameters
177 default: '{slave_label}'
178 description: 'Slave label on Jenkins'
180 node-eligibility: 'ignore-offline'
183 default: https://gerrit.opnfv.org/gerrit/$PROJECT
184 description: 'Git URL to use on this Jenkins Slave'
188 description: "To enable/disable pushing the image to Dockerhub."
192 description: "commit id to make a snapshot docker image"
196 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
200 description: "Project name used to enable job conditions"
204 description: "Repository name for fuel-docker images"