2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
9 project: compass-containers
16 branch: 'stable/{stream}'
21 slave_label: 'opnfv-build-ubuntu'
22 docker_file: 'Dockerfile'
24 slave_label: 'opnfv-build-ubuntu-arm'
25 docker_file: 'Dockerfile-arm64'
27 # yamllint disable rule:key-duplicates
37 # settings for jobs run in multijob phases
38 build-job-settings: &build-job-settings
39 current-parameters: false
41 node-parameters: false
42 predefined-parameters: |
43 PUSH_IMAGE=$PUSH_IMAGE
45 GERRIT_REFNAME=$GERRIT_REFNAME
46 kill-phase-on: FAILURE
49 manifest-job-settings: &manifest-job-settings
50 current-parameters: false
52 node-parameters: false
53 predefined-parameters:
54 GERRIT_REFNAME=$GERRIT_REFNAME
55 kill-phase-on: FAILURE
58 # yamllint enable rule:key-duplicates
60 - "compass-docker-{stream}"
61 - "compass-{image}-build-{arch_tag}-{stream}"
62 - "compass-{image}-manifest-{stream}"
64 ########################
66 ########################
68 name: 'compass-docker-{stream}'
70 project-type: multijob
72 disabled: '{obj:disabled}'
75 - compass-job-parameters:
78 slave_label: 'opnfv-build-ubuntu'
79 docker_file: 'Dockerfile'
96 name: 'build compass-tasks-base images'
97 execution-type: PARALLEL
99 - name: 'compass-tasks-base-build-amd64-{stream}'
100 <<: *build-job-settings
101 - name: 'compass-tasks-base-build-arm64-{stream}'
102 <<: *build-job-settings
104 name: 'publish compass-tasks-base manifests'
105 execution-type: PARALLEL
107 - name: 'compass-tasks-base-manifest-{stream}'
108 <<: *manifest-job-settings
110 name: 'build all compass images'
111 condition: SUCCESSFUL
112 execution-type: PARALLEL
114 - name: 'compass-cobbler-build-amd64-{stream}'
115 <<: *build-job-settings
116 - name: 'compass-db-build-amd64-{stream}'
117 <<: *build-job-settings
118 - name: 'compass-deck-build-amd64-{stream}'
119 <<: *build-job-settings
120 - name: 'compass-tasks-build-amd64-{stream}'
121 <<: *build-job-settings
122 - name: 'compass-tasks-k8s-build-amd64-{stream}'
123 <<: *build-job-settings
124 - name: 'compass-tasks-osa-build-amd64-{stream}'
125 <<: *build-job-settings
126 - name: 'compass-cobbler-build-arm64-{stream}'
127 <<: *build-job-settings
128 - name: 'compass-db-build-arm64-{stream}'
129 <<: *build-job-settings
130 - name: 'compass-deck-build-arm64-{stream}'
131 <<: *build-job-settings
132 - name: 'compass-tasks-build-arm64-{stream}'
133 <<: *build-job-settings
134 - name: 'compass-tasks-k8s-build-arm64-{stream}'
135 <<: *build-job-settings
136 - name: 'compass-tasks-osa-build-arm64-{stream}'
137 <<: *build-job-settings
139 name: 'publish all manifests'
140 execution-type: PARALLEL
142 - name: 'compass-cobbler-manifest-{stream}'
143 <<: *manifest-job-settings
144 - name: 'compass-db-manifest-{stream}'
145 <<: *manifest-job-settings
146 - name: 'compass-deck-manifest-{stream}'
147 <<: *manifest-job-settings
148 - name: 'compass-tasks-manifest-{stream}'
149 <<: *manifest-job-settings
150 - name: 'compass-tasks-k8s-manifest-{stream}'
151 <<: *manifest-job-settings
152 - name: 'compass-tasks-osa-manifest-{stream}'
153 <<: *manifest-job-settings
156 - 'compass-amd64-recipients'
157 - 'compass-arm64-recipients'
160 name: 'compass-{image}-build-{arch_tag}-{stream}'
161 disabled: '{obj:disabled}'
163 - compass-job-parameters:
166 slave_label: '{slave_label}'
167 docker_file: '{docker_file}'
168 arch_tag: '{arch_tag}'
170 name: DOCKER_REPO_NAME
171 default: "opnfv/compass-{image}"
172 description: "Dockerhub repo to be pushed to."
175 default: "compass-{image}"
176 description: "Directory containing files needed by the Dockerfile"
181 !include-raw-escape: ./opnfv-docker.sh
184 name: 'compass-{image}-manifest-{stream}'
185 disabled: '{obj:disabled}'
187 - compass-job-parameters:
190 slave_label: 'opnfv-build-ubuntu'
191 docker_file: 'Dockerfile'
202 sudo manifest-tool push from-args \
203 --platforms linux/amd64,linux/arm64 \
204 --template opnfv/compass-{image}:ARCH-$tag \
205 --target opnfv/compass-{image}:$tag
210 name: compass-job-parameters
217 default: '{slave_label}'
218 description: 'Slave label on Jenkins'
221 default: https://gerrit.opnfv.org/gerrit/$PROJECT
222 description: 'Git URL to use on this Jenkins Slave'
226 description: "To enable/disable pushing the image to Dockerhub."
230 description: "commit id to make a snapshot docker image"
234 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
237 default: '{docker_file}'
238 description: "Dockerfile to use for creating the image."
241 default: "{arch_tag}"
242 description: "If set, this value will be added to the docker image tag as a prefix"
246 description: "Project name used to enable job conditions"
250 name: 'compass-amd64-recipients'
255 huangxiangyui5@huawei.com
257 wutianwei1@huawei.com
260 name: 'compass-arm64-recipients'