blob: 7ac444d5f0e81ae243da3fa91f27aa8ae6eb1266 [file] [log] [blame]
Zack Williams1e325b22019-07-24 17:52:57 -07001---
2# Github-specific docker image building + dockerhub publishing tasks
3
4- job-template:
5 id: docker-publish-github
6 name: 'docker-publish-github_{project}'
7 description: |
8 Created by {id} job-template from ci-management/jjb/docker-publish.yaml
9
10 properties:
11 - cord-infra-properties:
12 build-days-to-keep: '{build-days-to-keep}'
13 artifact-num-to-keep: '{artifact-num-to-keep}'
14 - github:
15 url: 'https://github.com/{github-organization}/{project}'
16 display-status: 'docker-publish'
17
18 triggers:
19 - github
20
21 wrappers:
22 - lf-infra-wrappers:
23 build-timeout: '{build-timeout}'
24 jenkins-ssh-credential: '{jenkins-ssh-credential}'
25
26 parameters:
27 - string:
28 name: executorNode
29 default: 'ubuntu16.04-basebuild-1c-2g'
30 description: 'Name of the Jenkins node to run the job on'
31
32 - string:
33 name: gitUrl
34 default: 'https://github.com/{github-organization}/{project}'
35 description: 'URL to the git repo (on github)'
36
37 - string:
38 name: gitRef
39 default: 'master'
40 description: 'git ref to build (commit hash or tag)'
41
42 - string:
43 name: projectName
44 default: '{project}'
45 description: 'Name of the project in the Github Organization'
46
47 - string:
48 name: branchName
49 default: 'master'
50 description: 'Branch of the project - always master in the GitHub case'
51
52 - string:
53 name: dockerRepo
54 default: '{docker-repo}'
55 description: "Docker repository to push to ('opencord', 'xosproject', etc.)"
56
57 - string:
58 name: dockerRegistry
59 default: '{docker-registry}'
60 description: "Docker registry to push to (blank for DockerHub)"
61
62 # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*)
63 - string:
64 name: dockerArchList
65 default: 'x86_64'
66 description: "List of architectures to build containers on, pipe separated (nonfunctional currently)"
67
68 project-type: pipeline
69 concurrent: true
70
71 dsl: !include-raw-escape: pipeline/docker-publish.groovy