2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
9 project: compass-containers
16 branch: 'stable/{stream}'
19 branch: 'stable/{stream}'
24 slave_label: 'opnfv-build-ubuntu'
25 docker_file: 'Dockerfile'
27 slave_label: 'opnfv-build-ubuntu-arm'
28 docker_file: 'Dockerfile-arm64'
30 # yamllint disable rule:key-duplicates
40 # settings for jobs run in multijob phases
41 build-job-settings: &build-job-settings
42 current-parameters: false
44 node-parameters: false
45 predefined-parameters: |
46 PUSH_IMAGE=$PUSH_IMAGE
48 GERRIT_REFNAME=$GERRIT_REFNAME
49 kill-phase-on: FAILURE
52 manifest-job-settings: &manifest-job-settings
53 current-parameters: false
55 node-parameters: false
56 predefined-parameters:
57 GERRIT_REFNAME=$GERRIT_REFNAME
58 kill-phase-on: FAILURE
61 # yamllint enable rule:key-duplicates
63 - "compass-docker-{stream}"
64 - "compass-{image}-build-{arch_tag}-{stream}"
65 - "compass-{image}-manifest-{stream}"
67 ########################
69 ########################
71 name: 'compass-docker-{stream}'
73 project-type: multijob
75 disabled: '{obj:disabled}'
78 - compass-job-parameters:
81 slave_label: 'opnfv-build-ubuntu'
82 docker_file: 'Dockerfile'
99 name: 'build compass-tasks-base images'
100 execution-type: PARALLEL
102 - name: 'compass-tasks-base-build-amd64-{stream}'
103 <<: *build-job-settings
104 - name: 'compass-tasks-base-build-arm64-{stream}'
105 <<: *build-job-settings
107 name: 'publish compass-tasks-base manifests'
108 execution-type: PARALLEL
110 - name: 'compass-tasks-base-manifest-{stream}'
111 <<: *manifest-job-settings
113 name: 'build all compass images'
114 condition: SUCCESSFUL
115 execution-type: PARALLEL
117 - name: 'compass-cobbler-build-amd64-{stream}'
118 <<: *build-job-settings
119 - name: 'compass-db-build-amd64-{stream}'
120 <<: *build-job-settings
121 - name: 'compass-deck-build-amd64-{stream}'
122 <<: *build-job-settings
123 - name: 'compass-tasks-build-amd64-{stream}'
124 <<: *build-job-settings
125 - name: 'compass-tasks-k8s-build-amd64-{stream}'
126 <<: *build-job-settings
127 - name: 'compass-tasks-osa-build-amd64-{stream}'
128 <<: *build-job-settings
129 - name: 'compass-cobbler-build-arm64-{stream}'
130 <<: *build-job-settings
131 - name: 'compass-db-build-arm64-{stream}'
132 <<: *build-job-settings
133 - name: 'compass-deck-build-arm64-{stream}'
134 <<: *build-job-settings
135 - name: 'compass-tasks-build-arm64-{stream}'
136 <<: *build-job-settings
137 - name: 'compass-tasks-k8s-build-arm64-{stream}'
138 <<: *build-job-settings
139 - name: 'compass-tasks-osa-build-arm64-{stream}'
140 <<: *build-job-settings
142 name: 'publish all manifests'
143 execution-type: PARALLEL
145 - name: 'compass-cobbler-manifest-{stream}'
146 <<: *manifest-job-settings
147 - name: 'compass-db-manifest-{stream}'
148 <<: *manifest-job-settings
149 - name: 'compass-deck-manifest-{stream}'
150 <<: *manifest-job-settings
151 - name: 'compass-tasks-manifest-{stream}'
152 <<: *manifest-job-settings
153 - name: 'compass-tasks-k8s-manifest-{stream}'
154 <<: *manifest-job-settings
155 - name: 'compass-tasks-osa-manifest-{stream}'
156 <<: *manifest-job-settings
159 - 'compass-amd64-recipients'
160 - 'compass-arm64-recipients'
163 name: 'compass-{image}-build-{arch_tag}-{stream}'
164 disabled: '{obj:disabled}'
166 - compass-job-parameters:
169 slave_label: '{slave_label}'
170 docker_file: '{docker_file}'
171 arch_tag: '{arch_tag}'
173 name: DOCKER_REPO_NAME
174 default: "opnfv/compass-{image}"
175 description: "Dockerhub repo to be pushed to."
178 default: "compass-{image}"
179 description: "Directory containing files needed by the Dockerfile"
184 !include-raw-escape: ./opnfv-docker.sh
187 name: 'compass-{image}-manifest-{stream}'
188 disabled: '{obj:disabled}'
190 - compass-job-parameters:
193 slave_label: 'opnfv-build-ubuntu'
194 docker_file: 'Dockerfile'
205 sudo manifest-tool push from-args \
206 --platforms linux/amd64,linux/arm64 \
207 --template opnfv/compass-{image}:ARCH-$tag \
208 --target opnfv/compass-{image}:$tag
213 name: compass-job-parameters
220 default: '{slave_label}'
221 description: 'Slave label on Jenkins'
223 node-eligibility: 'ignore-offline'
226 default: https://gerrit.opnfv.org/gerrit/$PROJECT
227 description: 'Git URL to use on this Jenkins Slave'
231 description: "To enable/disable pushing the image to Dockerhub."
235 description: "commit id to make a snapshot docker image"
239 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
242 default: '{docker_file}'
243 description: "Dockerfile to use for creating the image."
246 default: "{arch_tag}"
247 description: "If set, this value will be added to the docker image tag as a prefix"
251 description: "Project name used to enable job conditions"
255 name: 'compass-amd64-recipients'
260 huangxiangyui5@huawei.com
262 wutianwei1@huawei.com
265 name: 'compass-arm64-recipients'