2 ##############################################
3 # job configuration for docker build and push
4 ##############################################
9 project: compass-containers
16 branch: 'stable/{stream}'
21 slave_label: 'opnfv-build-ubuntu'
23 # yamllint disable rule:key-duplicates
33 # settings for jobs run in multijob phases
34 build-job-settings: &build-job-settings
35 current-parameters: false
37 node-parameters: false
38 predefined-parameters: |
39 PUSH_IMAGE=$PUSH_IMAGE
41 GERRIT_REFNAME=$GERRIT_REFNAME
42 DOCKERFILE=$DOCKERFILE
43 kill-phase-on: FAILURE
46 # yamllint enable rule:key-duplicates
48 - "compass-docker-{stream}"
49 - "compass-{image}-build-{arch_tag}-{stream}"
51 ########################
53 ########################
55 name: 'compass-docker-{stream}'
57 project-type: multijob
59 disabled: '{obj:disabled}'
62 - compass-job-parameters:
65 slave_label: 'opnfv-build-ubuntu'
82 name: 'build compass-tasks-base images'
83 execution-type: PARALLEL
85 - name: 'compass-tasks-base-build-amd64-{stream}'
86 <<: *build-job-settings
88 name: 'build all compass images'
90 execution-type: PARALLEL
92 - name: 'compass-cobbler-build-amd64-{stream}'
93 <<: *build-job-settings
94 - name: 'compass-db-build-amd64-{stream}'
95 <<: *build-job-settings
96 - name: 'compass-deck-build-amd64-{stream}'
97 <<: *build-job-settings
98 - name: 'compass-tasks-build-amd64-{stream}'
99 <<: *build-job-settings
100 - name: 'compass-tasks-k8s-build-amd64-{stream}'
101 <<: *build-job-settings
102 - name: 'compass-tasks-osa-build-amd64-{stream}'
103 <<: *build-job-settings
106 - 'compass-amd64-recipients'
109 name: 'compass-{image}-build-{arch_tag}-{stream}'
110 disabled: '{obj:disabled}'
112 - compass-job-parameters:
115 slave_label: '{slave_label}'
116 arch_tag: '{arch_tag}'
118 name: DOCKER_REPO_NAME
119 default: "opnfv/compass-{image}"
120 description: "Dockerhub repo to be pushed to."
123 default: "compass-{image}"
124 description: "Directory containing files needed by the Dockerfile"
129 !include-raw-escape: ./opnfv-docker.sh
133 name: compass-job-parameters
140 default: '{slave_label}'
141 description: 'Slave label on Jenkins'
144 default: https://gerrit.opnfv.org/gerrit/$PROJECT
145 description: 'Git URL to use on this Jenkins Slave'
149 description: "To enable/disable pushing the image to Dockerhub."
153 description: "commit id to make a snapshot docker image"
157 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
160 default: "Dockerfile"
161 description: "Dockerfile to use for creating the image."
165 description: "If set, this value will be added to the docker image tag as a prefix"
169 description: "Project name used to enable job conditions"
173 name: 'compass-amd64-recipients'
178 huangxiangyui5@huawei.com
180 wutianwei1@huawei.com