blob: 9495c04823048504a5343925a702f0efcacf4cca [file] [log] [blame]
Zack Williamse16a9bd2019-03-21 23:02:24 -07001---
2# generic docker image building + dockerhub publishing tasks
3
4- job-template:
5 id: docker-publish
6 name: 'docker-publish_{project}'
7 description: |
8 Created by {id} job-template from ci-management/jjb/docker-publish.yaml
9
10 triggers:
11 - cord-infra-gerrit-trigger-merge:
12 gerrit-server-name: '{gerrit-server-name}'
13 project-regexp: '^{project}$'
14 branch-regexp: '{all-branches-regexp}'
15 file-include-regexp: '{all-files-regexp}'
16 dependency-jobs: '{dependency-jobs}'
17
18 properties:
19 - cord-infra-properties:
20 build-days-to-keep: '{build-days-to-keep}'
21 artifact-num-to-keep: '{artifact-num-to-keep}'
22
23 wrappers:
24 - lf-infra-wrappers:
25 build-timeout: '30'
26 jenkins-ssh-credential: '{jenkins-ssh-credential}'
27
28 parameters:
29 - string:
30 name: executorNode
31 default: 'ubuntu16.04-basebuild-1c-2g'
32 description: 'Name of the Jenkins node to run the job on'
33
34 - string:
35 name: gitUrl
36 default: '{gerrit-server-url}/{project}'
37 description: 'URL to the git repo'
38
39 - string:
40 name: dockerRepo
41 default: '{docker-repo}'
42 description: "Docker repository to push to ('opencord', 'xosproject', etc.)"
43
44 # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*)
45 - string:
46 name: dockerArchList
47 default: 'x86_64'
48 description: "List of architectures to build containers on, pipe separated (nonfunctional currently)"
49
50 project-type: pipeline
51 concurrent: true
52
53 dsl: !include-raw-escape: pipeline/docker-publish.groovy