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
32 # settings for jobs run in multijob phases
33 build-job-settings: &build-job-settings
34 current-parameters: false
36 node-parameters: false
37 predefined-parameters: |
38 PUSH_IMAGE=$PUSH_IMAGE
40 GERRIT_REFNAME=$GERRIT_REFNAME
41 DOCKERFILE=$DOCKERFILE
42 kill-phase-on: FAILURE
45 # yamllint enable rule:key-duplicates
47 - "compass-docker-{stream}"
48 - "compass-{image}-build-{arch_tag}-{stream}"
50 ########################
52 ########################
54 name: 'compass-docker-{stream}'
56 project-type: multijob
58 disabled: '{obj:disabled}'
61 - compass-job-parameters:
64 slave_label: 'opnfv-build-ubuntu'
81 name: 'build compass-tasks images'
82 execution-type: PARALLEL
84 - name: 'compass-tasks-build-amd64-{stream}'
85 <<: *build-job-settings
87 name: 'build all compass images'
89 execution-type: PARALLEL
91 - name: 'compass-cobbler-build-amd64-{stream}'
92 <<: *build-job-settings
93 - name: 'compass-db-build-amd64-{stream}'
94 <<: *build-job-settings
95 - name: 'compass-deck-build-amd64-{stream}'
96 <<: *build-job-settings
97 - name: 'compass-tasks-k8s-build-amd64-{stream}'
98 <<: *build-job-settings
99 - name: 'compass-tasks-osa-build-amd64-{stream}'
100 <<: *build-job-settings
103 - 'compass-amd64-recipients'
106 name: 'compass-{image}-build-{arch_tag}-{stream}'
107 disabled: '{obj:disabled}'
109 - compass-job-parameters:
112 slave_label: '{slave_label}'
113 arch_tag: '{arch_tag}'
115 name: DOCKER_REPO_NAME
116 default: "opnfv/compass-{image}"
117 description: "Dockerhub repo to be pushed to."
120 default: "compass-{image}"
121 description: "Directory containing files needed by the Dockerfile"
126 !include-raw-escape: ./opnfv-docker.sh
130 name: compass-job-parameters
137 default: '{slave_label}'
138 description: 'Slave label on Jenkins'
141 default: https://gerrit.opnfv.org/gerrit/$PROJECT
142 description: 'Git URL to use on this Jenkins Slave'
146 description: "To enable/disable pushing the image to Dockerhub."
150 description: "commit id to make a snapshot docker image"
154 description: "Docker tag to be built, e.g. refs/tags/5.0.0, refs/tags/opnfv-5.0.0, refs/tags/5.0.RC1"
157 default: "Dockerfile"
158 description: "Dockerfile to use for creating the image."
162 description: "If set, this value will be added to the docker image tag as a prefix"
166 description: "Project name used to enable job conditions"
170 name: 'compass-amd64-recipients'
175 huangxiangyui5@huawei.com
177 wutianwei1@huawei.com