Zack Williams | 1e325b2 | 2019-07-24 17:52:57 -0700 | [diff] [blame] | 1 | --- |
| 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 Williams | 1e325b2 | 2019-07-24 17:52:57 -0700 | [diff] [blame] | 18 | wrappers: |
| 19 | - lf-infra-wrappers: |
| 20 | build-timeout: '{build-timeout}' |
| 21 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 22 | |
| 23 | parameters: |
| 24 | - string: |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 25 | name: buildNode |
You Wang | 8512b83 | 2020-03-25 14:47:56 -0700 | [diff] [blame] | 26 | default: '{build-node}' |
Zack Williams | 1e325b2 | 2019-07-24 17:52:57 -0700 | [diff] [blame] | 27 | 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 Scandolo | 3aba73a | 2019-09-27 09:03:38 -0700 | [diff] [blame] | 65 | - string: |
| 66 | name: maintainers |
| 67 | default: '{maintainers}' |
| 68 | description: "The person that sould be notified if this job fails" |
| 69 | |
Zack Williams | 1e325b2 | 2019-07-24 17:52:57 -0700 | [diff] [blame] | 70 | project-type: pipeline |
| 71 | concurrent: true |
| 72 | |
| 73 | dsl: !include-raw-escape: pipeline/docker-publish.groovy |