blob: 0551bacaf35b4de7b173ae79d2502d14abc822a2 [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
Zack Williams1e325b22019-07-24 17:52:57 -070018 wrappers:
19 - lf-infra-wrappers:
20 build-timeout: '{build-timeout}'
21 jenkins-ssh-credential: '{jenkins-ssh-credential}'
22
23 parameters:
24 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070025 name: buildNode
You Wang8512b832020-03-25 14:47:56 -070026 default: '{build-node}'
Zack Williams1e325b22019-07-24 17:52:57 -070027 description: 'Name of the Jenkins node to run the job on'
28
29 - string:
30 name: gitUrl
31 default: 'https://github.com/{github-organization}/{project}'
32 description: 'URL to the git repo (on github)'
33
34 - string:
35 name: gitRef
36 default: 'master'
37 description: 'git ref to build (commit hash or tag)'
38
39 - string:
40 name: projectName
41 default: '{project}'
42 description: 'Name of the project in the Github Organization'
43
44 - string:
45 name: branchName
46 default: 'master'
47 description: 'Branch of the project - always master in the GitHub case'
48
49 - string:
50 name: dockerRepo
51 default: '{docker-repo}'
52 description: "Docker repository to push to ('opencord', 'xosproject', etc.)"
53
54 - string:
55 name: dockerRegistry
56 default: '{docker-registry}'
57 description: "Docker registry to push to (blank for DockerHub)"
58
59 # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*)
60 - string:
61 name: dockerArchList
62 default: 'x86_64'
63 description: "List of architectures to build containers on, pipe separated (nonfunctional currently)"
64
Matteo Scandolo3aba73a2019-09-27 09:03:38 -070065 - string:
66 name: maintainers
67 default: '{maintainers}'
68 description: "The person that sould be notified if this job fails"
69
Zack Williams1e325b22019-07-24 17:52:57 -070070 project-type: pipeline
71 concurrent: true
72
73 dsl: !include-raw-escape: pipeline/docker-publish.groovy