Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
| 4 | job_template: |
| 5 | docker-build-image: |
| 6 | name: docker-build-image-{{name}}-{{branch}} |
| 7 | jobs: |
| 8 | - name: gerrit |
| 9 | branch: "2.12.7" |
| 10 | tags: "2.12.7" |
| 11 | dockerfile: "Dockerfile" |
| 12 | - name: gerrit |
| 13 | branch: "2.13.6" |
| 14 | tags: "2.13.6 latest" |
| 15 | dockerfile: "Dockerfile" |
| 16 | - name: jenkins |
| 17 | branch: "2.32.3" |
| 18 | tags: "2.32" |
| 19 | dockerfile: "Dockerfile" |
| 20 | - name: jenkins |
| 21 | branch: "2.52" |
| 22 | tags: "2.52 latest" |
| 23 | dockerfile: "Dockerfile" |
| 24 | - name: phpldapadmin |
| 25 | branch: "master" |
| 26 | tags: "0.16.2 latest" |
| 27 | dockerfile: "image/Dockerfile" |
| 28 | template: |
| 29 | discard: |
| 30 | build: |
| 31 | keep_num: 5 |
| 32 | artifact: |
| 33 | keep_num: 5 |
| 34 | type: workflow-scm |
| 35 | concurrent: true |
| 36 | scm: |
| 37 | type: git |
| 38 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 39 | credentials: "gerrit" |
| 40 | script: docker-build-image-pipeline.groovy |
Jakub Josef | 4762701 | 2017-04-05 16:16:24 +0200 | [diff] [blame] | 41 | trigger: |
| 42 | gerrit: |
| 43 | project: |
| 44 | "mk/docker-{{name}}": |
| 45 | branches: |
Jakub Josef | e098f15 | 2017-04-06 14:34:18 +0200 | [diff] [blame] | 46 | - "{{branch}}" |
Jakub Josef | 4762701 | 2017-04-05 16:16:24 +0200 | [diff] [blame] | 47 | event: |
| 48 | patchset: |
| 49 | - created: |
| 50 | excludeDrafts: false |
| 51 | excludeTrivialRebase: false |
| 52 | excludeNoCodeChange: false |
| 53 | comment: |
| 54 | - addedContains: |
| 55 | commentAddedCommentContains: '(recheck|reverify)' |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 56 | param: |
| 57 | IMAGE_NAME: |
| 58 | type: string |
| 59 | default: "tcpcloud/{{name}}" |
| 60 | IMAGE_GIT_URL: |
| 61 | type: string |
Jakub Josef | a7b911c | 2017-04-05 15:09:01 +0200 | [diff] [blame] | 62 | default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 63 | IMAGE_BRANCH: |
| 64 | type: string |
| 65 | default: "{{branch}}" |
| 66 | IMAGE_CREDENTIALS_ID: |
| 67 | type: string |
| 68 | default: "gerrit" |
| 69 | IMAGE_TAGS: |
| 70 | type: string |
| 71 | default: "{{tags}}" |
| 72 | DOCKERFILE_PATH: |
| 73 | type: string |
| 74 | default: "{{dockerfile}}" |
| 75 | REGISTRY_URL: |
| 76 | type: string |
| 77 | default: "" |
| 78 | REGISTRY_CREDENTIALS_ID: |
| 79 | type: string |
| 80 | default: "dockerhub" |