Zack Williams | e16a9bd | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 1 | --- |
| 2 | # generic docker image building + dockerhub publishing tasks |
| 3 | |
| 4 | - job-template: |
| 5 | id: docker-publish |
| 6 | name: 'docker-publish_{project}' |
| 7 | description: | |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 8 | Created by {id} job-template from ci-management/jjb/docker-publish.yaml, script pipeline/docker-publish.groovy |
Zack Williams | e16a9bd | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 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: |
Zack Williams | b030c65 | 2019-07-29 12:44:12 -0700 | [diff] [blame] | 25 | build-timeout: '{build-timeout}' |
Zack Williams | e16a9bd | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 26 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 27 | |
| 28 | parameters: |
| 29 | - string: |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 30 | name: buildNode |
Hung-Wei Chiu | f6cbde2 | 2021-04-22 22:15:23 -0700 | [diff] [blame] | 31 | default: 'ubuntu18.04-basebuild-1c-2g' |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 32 | description: 'Name of the Jenkins build executor to run the job on' |
Zack Williams | e16a9bd | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 33 | |
| 34 | - string: |
| 35 | name: gitUrl |
| 36 | default: '{gerrit-server-url}/{project}' |
| 37 | description: 'URL to the git repo' |
| 38 | |
| 39 | - string: |
Zack Williams | 38126df | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 40 | name: gitRef |
| 41 | default: '$GERRIT_PATCHSET_REVISION' |
| 42 | description: 'git ref to build (commit hash or tag)' |
| 43 | |
| 44 | - string: |
Zack Williams | 8d92d6d | 2019-04-16 18:12:12 -0700 | [diff] [blame] | 45 | name: projectName |
| 46 | default: '$GERRIT_PROJECT' |
| 47 | description: 'Name of the project in Gerrit' |
| 48 | |
| 49 | - string: |
| 50 | name: branchName |
| 51 | default: '$GERRIT_BRANCH' |
| 52 | description: 'Branch of the project in Gerrit' |
| 53 | |
| 54 | - string: |
Zack Williams | e16a9bd | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 55 | name: dockerRepo |
| 56 | default: '{docker-repo}' |
| 57 | description: "Docker repository to push to ('opencord', 'xosproject', etc.)" |
| 58 | |
Zack Williams | 38126df | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 59 | - string: |
| 60 | name: dockerRegistry |
| 61 | default: '{docker-registry}' |
| 62 | description: "Docker registry to push to (blank for DockerHub)" |
| 63 | |
Zack Williams | e16a9bd | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 64 | # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*) |
| 65 | - string: |
| 66 | name: dockerArchList |
| 67 | default: 'x86_64' |
| 68 | description: "List of architectures to build containers on, pipe separated (nonfunctional currently)" |
| 69 | |
Matteo Scandolo | 3aba73a | 2019-09-27 09:03:38 -0700 | [diff] [blame] | 70 | - string: |
| 71 | name: maintainers |
| 72 | default: '{maintainers}' |
| 73 | description: "The person that sould be notified if this job fails" |
| 74 | |
Matteo Scandolo | 8436612 | 2020-04-29 15:08:40 -0700 | [diff] [blame] | 75 | - string: |
| 76 | name: extraEnvironmentVars |
| 77 | default: '{extraEnvironmentVars}' |
| 78 | description: "Provide extra environment variables to the build" |
| 79 | |
Zack Williams | e16a9bd | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 80 | project-type: pipeline |
| 81 | concurrent: true |
Matteo Scandolo | 8436612 | 2020-04-29 15:08:40 -0700 | [diff] [blame] | 82 | extraEnvironmentVars: "" |
Zack Williams | e16a9bd | 2019-03-21 23:02:24 -0700 | [diff] [blame] | 83 | |
| 84 | dsl: !include-raw-escape: pipeline/docker-publish.groovy |
Joey Armstrong | af679da | 2023-01-31 14:22:41 -0500 | [diff] [blame] | 85 | |
| 86 | # [EOF] |