| --- |
| # Github-specific docker image building + dockerhub publishing tasks |
| |
| - job-template: |
| id: docker-publish-github |
| name: 'docker-publish-github_{project}' |
| description: | |
| Created by {id} job-template from ci-management/jjb/docker-publish.yaml |
| |
| properties: |
| - cord-infra-properties: |
| build-days-to-keep: '{build-days-to-keep}' |
| artifact-num-to-keep: '{artifact-num-to-keep}' |
| - github: |
| url: 'https://github.com/{github-organization}/{project}' |
| display-status: 'docker-publish' |
| |
| wrappers: |
| - lf-infra-wrappers: |
| build-timeout: '{build-timeout}' |
| jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| |
| parameters: |
| - string: |
| name: buildNode |
| default: '{build-node}' |
| description: 'Name of the Jenkins node to run the job on' |
| |
| - string: |
| name: gitUrl |
| default: 'https://github.com/{github-organization}/{project}' |
| description: 'URL to the git repo (on github)' |
| |
| - string: |
| name: gitRef |
| default: 'master' |
| description: 'git ref to build (commit hash or tag)' |
| |
| - string: |
| name: projectName |
| default: '{project}' |
| description: 'Name of the project in the Github Organization' |
| |
| - string: |
| name: branchName |
| default: 'master' |
| description: 'Branch of the project - always master in the GitHub case' |
| |
| - string: |
| name: dockerRepo |
| default: '{docker-repo}' |
| description: "Docker repository to push to ('opencord', 'xosproject', etc.)" |
| |
| - string: |
| name: dockerRegistry |
| default: '{docker-registry}' |
| description: "Docker registry to push to (blank for DockerHub)" |
| |
| # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*) |
| - string: |
| name: dockerArchList |
| default: 'x86_64' |
| description: "List of architectures to build containers on, pipe separated (nonfunctional currently)" |
| |
| - string: |
| name: maintainers |
| default: '{maintainers}' |
| description: "The person that sould be notified if this job fails" |
| |
| project-type: pipeline |
| concurrent: true |
| |
| dsl: !include-raw-escape: pipeline/docker-publish.groovy |