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 DOCKERFILE=$DOCKERFILE
47 kill-phase-on: FAILURE
50 manifest-job-settings: &manifest-job-settings
51 current-parameters: false
53 node-parameters: false
54 predefined-parameters:
55 GERRIT_REFNAME=$GERRIT_REFNAME
56 kill-phase-on: FAILURE
59 # yamllint enable rule:key-duplicates
61 - "compass-docker-{stream}"
62 - "compass-{image}-build-{arch_tag}-{stream}"
63 - "compass-{image}-manifest-{stream}"
65 ########################
67 ########################
69 name: 'compass-docker-{stream}'
71 project-type: multijob
73 disabled: '{obj:disabled}'
76 - compass-job-parameters:
79 slave_label: 'opnfv-build-ubuntu'
80 docker_file: 'Dockerfile'
97 name: 'build compass-tasks-base images'
98 execution-type: PARALLEL
100 - name: 'compass-tasks-base-build-amd64-{stream}'
101 <<: *build-job-settings
102 - name: 'compass-tasks-base-build-arm64-{stream}'
103 <<: *build-job-settings
105 name: 'publish compass-tasks-base manifests'
106 execution-type: PARALLEL
108 - name: 'compass-tasks-base-manifest-{stream}'
109 <<: *manifest-job-settings
111 name: 'build all compass images'
112 condition: SUCCESSFUL
113 execution-type: PARALLEL
115 - name: 'compass-cobbler-build-amd64-{stream}'
116 <<: *build-job-settings
117 - name: 'compass-db-build-amd64-{stream}'
118 <<: *build-job-settings
119 - name: 'compass-deck-build-amd64-{stream}'
120 <<: *build-job-settings
121 - name: 'compass-tasks-build-amd64-{stream}'
122 <<: *build-job-settings
123 - name: 'compass-tasks-k8s-build-amd64-{stream}'
124 <<: *build-job-settings
125 - name: 'compass-tasks-osa-build-amd64-{stream}'
126 <<: *build-job-settings
127 - name: 'compass-cobbler-build-arm64-{stream}'
128 <<: *build-job-settings
129 - name: 'compass-db-build-arm64-{stream}'
130 <<: *build-job-settings
131 - name: 'compass-deck-build-arm64-{stream}'
132 <<: *build-job-settings
133 - name: 'compass-tasks-build-arm64-{stream}'
134 <<: *build-job-settings
135 - name: 'compass-tasks-k8s-build-arm64-{stream}'
136 <<: *build-job-settings
137 - name: 'compass-tasks-osa-build-arm64-{stream}'
138 <<: *build-job-settings
140 name: 'publish all manifests'
141 execution-type: PARALLEL
143 - name: 'compass-cobbler-manifest-{stream}'
144 <<: *manifest-job-settings
145 - name: 'compass-db-manifest-{stream}'
146 <<: *manifest-job-settings
147 - name: 'compass-deck-manifest-{stream}'
148 <<: *manifest-job-settings
149 - name: 'compass-tasks-manifest-{stream}'
150 <<: *manifest-job-settings
151 - name: 'compass-tasks-k8s-manifest-{stream}'
152 <<: *manifest-job-settings
153 - name: 'compass-tasks-osa-manifest-{stream}'
154 <<: *manifest-job-settings
157 - 'compass-amd64-recipients'
158 - 'compass-arm64-recipients'
161 name: 'compass-{image}-build-{arch_tag}-{stream}'
162 disabled: '{obj:disabled}'
164 - compass-job-parameters:
167 slave_label: '{slave_label}'
168 docker_file: '{docker_file}'
169 arch_tag: '{arch_tag}'
171 name: DOCKER_REPO_NAME
172 default: "opnfv/compass-{image}"
173 description: "Dockerhub repo to be pushed to."
176 default: "compass-{image}"
177 description: "Directory containing files needed by the Dockerfile"
182 !include-raw-escape: ./opnfv-docker.sh
185 name: 'compass-{image}-manifest-{stream}'
186 disabled: '{obj:disabled}'
188 - compass-job-parameters:
191 slave_label: 'opnfv-build-ubuntu'
192 docker_file: 'Dockerfile'
203 sudo manifest-tool push from-args \
204 --platforms linux/amd64,linux/arm64 \
205 --template opnfv/compass-{image}:ARCH-$tag \
206 --target opnfv/compass-{image}:$tag
211 name: compass-job-parameters
218 default: '{slave_label}'
219 description: 'Slave label on Jenkins'
222 default: https://gerrit.opnfv.org/gerrit/$PROJECT
223 description: 'Git URL to use on this Jenkins Slave'
227 description: "To enable/disable pushing the image to Dockerhub."
231 description: "commit id to make a snapshot docker image"
235 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
238 default: '{docker_file}'
239 description: "Dockerfile to use for creating the image."
242 default: "{arch_tag}"
243 description: "If set, this value will be added to the docker image tag as a prefix"
247 description: "Project name used to enable job conditions"
251 name: 'compass-amd64-recipients'
256 huangxiangyui5@huawei.com
258 wutianwei1@huawei.com
261 name: 'compass-arm64-recipients'