pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 1 | --- |
| 2 | # generic docker image building + dockerhub publishing tasks |
| 3 | |
| 4 | - job-template: |
| 5 | id: private-docker-publish |
| 6 | name: 'private-docker-publish_{project}' |
pierventre | 4a95960 | 2020-11-02 14:46:19 +0100 | [diff] [blame] | 7 | disabled: '{disable-job}' |
pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 8 | description: | |
| 9 | Created by {id} job-template from ci-management/jjb/private-docker-publish.yaml, script pipeline/docker-publish.groovy |
| 10 | |
| 11 | triggers: |
| 12 | - onf-infra-gerrit-trigger-merge: |
| 13 | gerrit-server-name: '{gerrit-server-name}' |
| 14 | project-regexp: '{project}' |
| 15 | branch-regexp: '{branch-regexp}' |
| 16 | file-include-regexp: '{all-files-regexp}' |
| 17 | dependency-jobs: '{dependency-jobs}' |
| 18 | |
| 19 | properties: |
pierventre | a3a6cd6 | 2020-08-31 19:16:14 +0200 | [diff] [blame] | 20 | - onf-infra-onfstaff-private: |
pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 21 | - onf-infra-properties: |
| 22 | build-days-to-keep: '{build-days-to-keep}' |
| 23 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 24 | |
| 25 | wrappers: |
| 26 | - lf-infra-wrappers: |
| 27 | build-timeout: '{build-timeout}' |
| 28 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 29 | |
| 30 | parameters: |
| 31 | - string: |
| 32 | name: buildNode |
| 33 | default: '{bigger-build-node}' |
| 34 | description: 'Name of the Jenkins build executor to run the job on' |
| 35 | |
| 36 | - string: |
| 37 | name: gitUrl |
| 38 | default: '$GIT_URL/$GERRIT_PROJECT' |
| 39 | description: 'URL to the git repo' |
| 40 | |
| 41 | - string: |
| 42 | name: gitRef |
| 43 | default: '$GERRIT_PATCHSET_REVISION' |
| 44 | description: 'git ref to build (commit hash or tag)' |
| 45 | |
| 46 | - string: |
pierventre | 07ef37d | 2020-07-23 12:23:17 +0200 | [diff] [blame] | 47 | name: gitRefSpec |
| 48 | default: '$GERRIT_REFSPEC' |
| 49 | description: 'git refSpec to build (refs/changes/)' |
| 50 | |
| 51 | - string: |
pierventre | 65d85a2 | 2020-07-21 20:30:20 +0200 | [diff] [blame] | 52 | name: projectName |
| 53 | default: '$GERRIT_PROJECT' |
| 54 | description: 'Name of the project in Gerrit' |
| 55 | |
| 56 | - string: |
| 57 | name: branchName |
| 58 | default: '$GERRIT_BRANCH' |
| 59 | description: 'Branch of the project in Gerrit' |
| 60 | |
| 61 | - string: |
| 62 | name: dockerRepo |
| 63 | default: '{docker-repo}' |
| 64 | description: "Docker repository to push to ('onosproject', etc.)" |
| 65 | |
| 66 | - string: |
| 67 | name: dockerRegistry |
| 68 | default: '{docker-registry}' |
| 69 | description: "Docker registry to push to (blank for DockerHub)" |
| 70 | |
| 71 | # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*) |
| 72 | - string: |
| 73 | name: dockerArchList |
| 74 | default: 'x86_64' |
| 75 | description: "List of architectures to build containers on, pipe separated (nonfunctional currently)" |
| 76 | |
| 77 | - string: |
| 78 | name: maintainers |
| 79 | default: '{maintainers}' |
| 80 | description: "The person that should be notified if this job fails" |
| 81 | |
| 82 | - string: |
| 83 | name: extraEnvironmentVars |
| 84 | default: '{extraEnvironmentVars}' |
| 85 | description: "Provide extra environment variables to the build" |
| 86 | |
| 87 | project-type: pipeline |
| 88 | concurrent: true |
| 89 | extraEnvironmentVars: "" |
| 90 | sandbox: true |
| 91 | |
| 92 | dsl: !include-raw-escape: ../pipeline/docker-publish.groovy |