Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
Jakub Josef | 0845aa8 | 2017-04-18 14:53:39 +0200 | [diff] [blame] | 4 | view: |
| 5 | Docker: |
| 6 | enabled: true |
| 7 | type: ListView |
Jakub Josef | 69a72b9 | 2017-04-27 18:03:45 +0200 | [diff] [blame] | 8 | include_regex: ".*docker.*" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 9 | job_template: |
| 10 | docker-build-image: |
| 11 | name: docker-build-image-{{name}}-{{branch}} |
| 12 | jobs: |
| 13 | - name: gerrit |
| 14 | branch: "2.12.7" |
| 15 | tags: "2.12.7" |
| 16 | dockerfile: "Dockerfile" |
| 17 | - name: gerrit |
| 18 | branch: "2.13.6" |
| 19 | tags: "2.13.6 latest" |
| 20 | dockerfile: "Dockerfile" |
| 21 | - name: jenkins |
chnyda | 8c676a0 | 2017-10-23 14:03:54 +0200 | [diff] [blame^] | 22 | branch: "master" |
| 23 | tags: "" |
| 24 | - name: jenkins |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 25 | branch: "2.32.3" |
| 26 | tags: "2.32" |
| 27 | dockerfile: "Dockerfile" |
| 28 | - name: jenkins |
Filip Pytloun | fbfbddf | 2017-08-16 21:49:42 +0200 | [diff] [blame] | 29 | branch: "2.73" |
| 30 | tags: "2.73 latest" |
Ruslan Kamaldinov | 36fd848 | 2017-07-19 18:15:28 +0400 | [diff] [blame] | 31 | dockerfile: "Dockerfile" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 32 | - name: phpldapadmin |
| 33 | branch: "master" |
Jakub Josef | fbb3ab9 | 2017-04-13 15:16:52 +0200 | [diff] [blame] | 34 | tags: "latest" |
| 35 | dockerfile: "image/Dockerfile" |
| 36 | - name: openldap |
| 37 | branch: "master" |
| 38 | tags: "latest" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 39 | dockerfile: "image/Dockerfile" |
Filip Pytloun | 23567e6 | 2017-04-25 17:52:29 +0200 | [diff] [blame] | 40 | - name: mysql |
| 41 | branch: "master" |
| 42 | tags: "5.6 latest" |
| 43 | dockerfile: "5.6/Dockerfile" |
chnyda | a9cf0d3 | 2017-10-12 14:14:03 +0200 | [diff] [blame] | 44 | - name: jnlp-slave |
| 45 | branch: "master" |
| 46 | tags: "latest" |
| 47 | dockerfile: "Dockerfile" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 48 | template: |
| 49 | discard: |
| 50 | build: |
| 51 | keep_num: 5 |
| 52 | artifact: |
| 53 | keep_num: 5 |
| 54 | type: workflow-scm |
| 55 | concurrent: true |
| 56 | scm: |
| 57 | type: git |
| 58 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 59 | credentials: "gerrit" |
| 60 | script: docker-build-image-pipeline.groovy |
Jakub Josef | 4762701 | 2017-04-05 16:16:24 +0200 | [diff] [blame] | 61 | trigger: |
| 62 | gerrit: |
| 63 | project: |
| 64 | "mk/docker-{{name}}": |
| 65 | branches: |
Jakub Josef | e098f15 | 2017-04-06 14:34:18 +0200 | [diff] [blame] | 66 | - "{{branch}}" |
Jakub Josef | 4762701 | 2017-04-05 16:16:24 +0200 | [diff] [blame] | 67 | event: |
Jakub Josef | 1bcaeb0 | 2017-04-07 12:56:49 +0200 | [diff] [blame] | 68 | ref: |
| 69 | - updated: {} |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 70 | param: |
| 71 | IMAGE_NAME: |
| 72 | type: string |
| 73 | default: "tcpcloud/{{name}}" |
| 74 | IMAGE_GIT_URL: |
| 75 | type: string |
Jakub Josef | a7b911c | 2017-04-05 15:09:01 +0200 | [diff] [blame] | 76 | default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 77 | IMAGE_BRANCH: |
| 78 | type: string |
| 79 | default: "{{branch}}" |
| 80 | IMAGE_CREDENTIALS_ID: |
| 81 | type: string |
| 82 | default: "gerrit" |
| 83 | IMAGE_TAGS: |
| 84 | type: string |
| 85 | default: "{{tags}}" |
| 86 | DOCKERFILE_PATH: |
| 87 | type: string |
| 88 | default: "{{dockerfile}}" |
| 89 | REGISTRY_URL: |
| 90 | type: string |
| 91 | default: "" |
| 92 | REGISTRY_CREDENTIALS_ID: |
| 93 | type: string |
Jakub Josef | fbb3ab9 | 2017-04-13 15:16:52 +0200 | [diff] [blame] | 94 | default: "dockerhub" |
| 95 | DOCKER_GIT_TAG: |
| 96 | type: boolean |
Filip Pytloun | 23567e6 | 2017-04-25 17:52:29 +0200 | [diff] [blame] | 97 | default: "true" |