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 dockerfile: 'Dockerfile'
24 slave_label: 'opnfv-build-ubuntu-arm'
25 dockerfile: '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'
95 name: 'build compass-tasks-base images'
96 execution-type: PARALLEL
98 - name: 'compass-tasks-base-build-amd64-{stream}'
99 <<: *build-job-settings
100 - name: 'compass-tasks-base-build-arm64-{stream}'
101 <<: *build-job-settings
103 name: 'publish compass-tasks-base manifests'
104 execution-type: PARALLEL
106 - name: 'compass-tasks-base-manifest-{stream}'
107 <<: *manifest-job-settings
109 name: 'build all compass images'
110 condition: SUCCESSFUL
111 execution-type: PARALLEL
113 - name: 'compass-cobbler-build-amd64-{stream}'
114 <<: *build-job-settings
115 - name: 'compass-db-build-amd64-{stream}'
116 <<: *build-job-settings
117 - name: 'compass-deck-build-amd64-{stream}'
118 <<: *build-job-settings
119 - name: 'compass-tasks-build-amd64-{stream}'
120 <<: *build-job-settings
121 - name: 'compass-tasks-k8s-build-amd64-{stream}'
122 <<: *build-job-settings
123 - name: 'compass-tasks-osa-build-amd64-{stream}'
124 <<: *build-job-settings
125 - name: 'compass-cobbler-build-arm64-{stream}'
126 <<: *build-job-settings
127 - name: 'compass-db-build-arm64-{stream}'
128 <<: *build-job-settings
129 - name: 'compass-deck-build-arm64-{stream}'
130 <<: *build-job-settings
131 - name: 'compass-tasks-build-arm64-{stream}'
132 <<: *build-job-settings
133 - name: 'compass-tasks-k8s-build-arm64-{stream}'
134 <<: *build-job-settings
135 - name: 'compass-tasks-osa-build-arm64-{stream}'
136 <<: *build-job-settings
138 name: 'publish all manifests'
139 execution-type: PARALLEL
141 - name: 'compass-cobbler-manifest-{stream}'
142 <<: *manifest-job-settings
143 - name: 'compass-db-manifest-{stream}'
144 <<: *manifest-job-settings
145 - name: 'compass-deck-manifest-{stream}'
146 <<: *manifest-job-settings
147 - name: 'compass-tasks-manifest-{stream}'
148 <<: *manifest-job-settings
149 - name: 'compass-tasks-k8s-manifest-{stream}'
150 <<: *manifest-job-settings
151 - name: 'compass-tasks-osa-manifest-{stream}'
152 <<: *manifest-job-settings
155 - 'compass-amd64-recipients'
156 - 'compass-arm64-recipients'
159 name: 'compass-{image}-build-{arch_tag}-{stream}'
160 disabled: '{obj:disabled}'
162 - compass-job-parameters:
165 slave_label: '{slave_label}'
167 name: DOCKER_REPO_NAME
168 default: "opnfv/compass-{image}"
169 description: "Dockerhub repo to be pushed to."
172 default: "compass-{image}"
173 description: "Directory containing files needed by the Dockerfile"
176 default: '{dockerfile}'
177 description: "Dockerfile to use for creating the image."
180 default: "{arch_tag}"
181 description: "If set, this value will be added to the docker image tag as a prefix"
186 !include-raw-escape: ./opnfv-docker.sh
189 name: 'compass-{image}-manifest-{stream}'
190 disabled: '{obj:disabled}'
192 - compass-job-parameters:
195 slave_label: 'opnfv-build-ubuntu'
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'
224 default: https://gerrit.opnfv.org/gerrit/$PROJECT
225 description: 'Git URL to use on this Jenkins Slave'
229 description: "To enable/disable pushing the image to Dockerhub."
233 description: "commit id to make a snapshot docker image"
237 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
241 description: "Project name used to enable job conditions"
245 name: 'compass-amd64-recipients'
250 huangxiangyui5@huawei.com
252 wutianwei1@huawei.com
255 name: 'compass-arm64-recipients'