Zack Williams | ce60d71 | 2018-05-27 15:27:57 -0700 | [diff] [blame] | 1 | --- |
Zack Williams | 12783ac | 2018-06-12 15:13:12 -0700 | [diff] [blame] | 2 | # CORD docker image building + dockerhub publishing tasks |
Zack Williams | ce60d71 | 2018-05-27 15:27:57 -0700 | [diff] [blame] | 3 | |
| 4 | - project: |
| 5 | name: imagebuilder |
| 6 | |
| 7 | # add repos that have documentation to the project list in both jobs |
| 8 | jobs: |
| 9 | - 'publish-imagebuilder': |
Zack Williams | 5fee002 | 2018-06-11 14:42:54 -0700 | [diff] [blame] | 10 | project-regexp: '{imagebuilder-projects-regexp}' |
Zack Williams | ce60d71 | 2018-05-27 15:27:57 -0700 | [diff] [blame] | 11 | branch-regexp: '{supported-branches-regexp}' |
Zack Williams | 9f4268d | 2018-06-21 15:19:15 -0700 | [diff] [blame] | 12 | dependency-jobs: 'version-tag' |
Zack Williams | ce60d71 | 2018-05-27 15:27:57 -0700 | [diff] [blame] | 13 | |
| 14 | - job-template: |
| 15 | id: publish-imagebuilder |
| 16 | name: 'publish-imagebuilder' |
| 17 | description: | |
Andy Bavier | c517852 | 2018-12-12 15:36:30 -0700 | [diff] [blame] | 18 | Created by {id} job-template from ci-management/jjb/imagebuilder.yaml |
Zack Williams | ce60d71 | 2018-05-27 15:27:57 -0700 | [diff] [blame] | 19 | |
| 20 | triggers: |
| 21 | - cord-infra-gerrit-trigger-merge: |
| 22 | gerrit-server-name: '{gerrit-server-name}' |
| 23 | project-regexp: '{project-regexp}' |
| 24 | branch-regexp: '{branch-regexp}' |
| 25 | file-include-regexp: '{all-files-regexp}' |
| 26 | dependency-jobs: '{dependency-jobs}' |
| 27 | |
| 28 | properties: |
| 29 | - cord-infra-properties: |
| 30 | build-days-to-keep: '{build-days-to-keep}' |
| 31 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 32 | |
| 33 | wrappers: |
| 34 | - lf-infra-wrappers: |
| 35 | build-timeout: '{build-timeout}' |
| 36 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 37 | |
| 38 | parameters: |
| 39 | - string: |
| 40 | name: executorNode |
Zack Williams | 675a755 | 2018-05-29 16:14:09 -0700 | [diff] [blame] | 41 | default: 'imagebuilder' |
Zack Williams | ce60d71 | 2018-05-27 15:27:57 -0700 | [diff] [blame] | 42 | description: 'Name of the Jenkins node to run the job on' |
| 43 | |
| 44 | - string: |
| 45 | name: manifestUrl |
| 46 | default: '{gerrit-server-url}/{cord-repo-manifest}' |
| 47 | description: 'URL to the repo manifest' |
| 48 | |
| 49 | - string: |
| 50 | name: manifestBranch |
| 51 | default: '$GERRIT_BRANCH' |
| 52 | description: 'Name of the repo branch to use' |
| 53 | |
Andy Bavier | c517852 | 2018-12-12 15:36:30 -0700 | [diff] [blame] | 54 | # NOTE: May need to parameters that give the ability to rebuild from a specific |
| 55 | # tag or commit on a branch. |
Zack Williams | 12783ac | 2018-06-12 15:13:12 -0700 | [diff] [blame] | 56 | |
Zack Williams | ce60d71 | 2018-05-27 15:27:57 -0700 | [diff] [blame] | 57 | - bool: |
| 58 | name: build |
| 59 | default: false |
| 60 | description: 'Rebuild all containers (same as "docker build --no-cache")' |
| 61 | |
| 62 | - bool: |
| 63 | name: force |
| 64 | default: false |
| 65 | description: 'Force remove obsolete tags/images (same as "docker rmi --force")' |
| 66 | |
Zack Williams | 5e09c95 | 2018-06-12 10:19:48 -0700 | [diff] [blame] | 67 | - string: |
Andy Bavier | c517852 | 2018-12-12 15:36:30 -0700 | [diff] [blame] | 68 | name: failureEmail |
| 69 | default: '{failure-email-address}, $GERRIT_PATCHSET_UPLOADER_EMAIL' |
| 70 | description: 'On job failure, send an email to these addresses' |
Zack Williams | ce60d71 | 2018-05-27 15:27:57 -0700 | [diff] [blame] | 71 | |
| 72 | project-type: pipeline |
| 73 | concurrent: false |
| 74 | |
| 75 | dsl: !include-raw-escape: pipeline/imagebuilder.groovy |
| 76 | |