chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
Jakub Josef | 1916e23 | 2017-05-24 14:27:08 +0200 | [diff] [blame] | 4 | job_template: |
chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 5 | docker-build-images: |
Jakub Josef | b5f6700 | 2017-05-22 18:45:46 +0200 | [diff] [blame] | 6 | name: "docker-build-images-{{name}}" |
chnyda | ff4b118 | 2017-05-22 11:05:25 +0200 | [diff] [blame] | 7 | jobs: |
| 8 | - name: aptly |
| 9 | - name: ci |
| 10 | template: |
| 11 | discard: |
| 12 | build: |
| 13 | keep_num: 25 |
| 14 | artifact: |
| 15 | keep_num: 25 |
| 16 | type: workflow-scm |
| 17 | concurrent: true |
| 18 | scm: |
| 19 | type: git |
| 20 | url: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}" |
| 21 | credentials: "gerrit" |
| 22 | trigger: |
| 23 | gerrit: |
| 24 | project: |
| 25 | "mk/docker-{{name}}": |
| 26 | branches: |
| 27 | - master |
| 28 | event: |
| 29 | ref: |
| 30 | - updated: {} |
| 31 | param: |
| 32 | IMAGE_GIT_URL: |
| 33 | type: string |
| 34 | default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}" |
| 35 | IMAGE_BRANCH: |
| 36 | type: string |
| 37 | default: "master" |
| 38 | IMAGE_CREDENTIALS_ID: |
| 39 | type: string |
| 40 | default: "gerrit" |
| 41 | IMAGE_TAGS: |
| 42 | type: string |
| 43 | default: "latest" |
| 44 | REGISTRY_URL: |
| 45 | type: string |
| 46 | default: "" |
| 47 | REGISTRY_CREDENTIALS_ID: |
| 48 | type: string |
| 49 | default: "dockerhub" |
| 50 | DOCKER_GIT_TAG: |
| 51 | type: boolean |
| 52 | default: "true" |