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
31 # settings for jobs run in multijob phases
32 build-job-settings: &build-job-settings
33 current-parameters: false
35 node-parameters: false
36 predefined-parameters: |
37 PUSH_IMAGE=$PUSH_IMAGE
39 GERRIT_REFNAME=$GERRIT_REFNAME
40 DOCKERFILE=$DOCKERFILE
41 kill-phase-on: FAILURE
44 # yamllint enable rule:key-duplicates
46 - "compass-docker-{stream}"
47 - "compass-{image}-build-{arch_tag}-{stream}"
49 ########################
51 ########################
53 name: 'compass-docker-{stream}'
55 project-type: multijob
57 disabled: '{obj:disabled}'
60 - compass-job-parameters:
63 slave_label: 'opnfv-build-ubuntu'
80 name: 'build compass-tasks-base images'
81 execution-type: PARALLEL
83 - name: 'compass-tasks-base-build-amd64-{stream}'
84 <<: *build-job-settings
86 name: 'build all compass images'
88 execution-type: PARALLEL
90 - name: 'compass-cobbler-build-amd64-{stream}'
91 <<: *build-job-settings
92 - name: 'compass-db-build-amd64-{stream}'
93 <<: *build-job-settings
94 - name: 'compass-deck-build-amd64-{stream}'
95 <<: *build-job-settings
96 - name: 'compass-tasks-build-amd64-{stream}'
97 <<: *build-job-settings
100 - 'compass-amd64-recipients'
103 name: 'compass-{image}-build-{arch_tag}-{stream}'
104 disabled: '{obj:disabled}'
106 - compass-job-parameters:
109 slave_label: '{slave_label}'
110 arch_tag: '{arch_tag}'
112 name: DOCKER_REPO_NAME
113 default: "opnfv/compass-{image}"
114 description: "Dockerhub repo to be pushed to."
117 default: "compass-{image}"
118 description: "Directory containing files needed by the Dockerfile"
123 !include-raw-escape: ./opnfv-docker.sh
127 name: compass-job-parameters
134 default: '{slave_label}'
135 description: 'Slave label on Jenkins'
138 default: https://gerrit.opnfv.org/gerrit/$PROJECT
139 description: 'Git URL to use on this Jenkins Slave'
143 description: "To enable/disable pushing the image to Dockerhub."
147 description: "commit id to make a snapshot docker image"
151 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
154 default: "Dockerfile"
155 description: "Dockerfile to use for creating the image."
159 description: "If set, this value will be added to the docker image tag as a prefix"
163 description: "Project name used to enable job conditions"
167 name: 'compass-amd64-recipients'
172 huangxiangyui5@huawei.com
174 wutianwei1@huawei.com