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 |
| 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 |
| 22 | branch: "2.32.3" |
| 23 | tags: "2.32" |
| 24 | dockerfile: "Dockerfile" |
| 25 | - name: jenkins |
| 26 | branch: "2.52" |
| 27 | tags: "2.52 latest" |
| 28 | dockerfile: "Dockerfile" |
| 29 | - name: phpldapadmin |
| 30 | branch: "master" |
Jakub Josef | fbb3ab9 | 2017-04-13 15:16:52 +0200 | [diff] [blame] | 31 | tags: "latest" |
| 32 | dockerfile: "image/Dockerfile" |
| 33 | - name: openldap |
| 34 | branch: "master" |
| 35 | tags: "latest" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 36 | dockerfile: "image/Dockerfile" |
| 37 | template: |
| 38 | discard: |
| 39 | build: |
| 40 | keep_num: 5 |
| 41 | artifact: |
| 42 | keep_num: 5 |
| 43 | type: workflow-scm |
| 44 | concurrent: true |
| 45 | scm: |
| 46 | type: git |
| 47 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 48 | credentials: "gerrit" |
| 49 | script: docker-build-image-pipeline.groovy |
Jakub Josef | 4762701 | 2017-04-05 16:16:24 +0200 | [diff] [blame] | 50 | trigger: |
| 51 | gerrit: |
| 52 | project: |
| 53 | "mk/docker-{{name}}": |
| 54 | branches: |
Jakub Josef | e098f15 | 2017-04-06 14:34:18 +0200 | [diff] [blame] | 55 | - "{{branch}}" |
Jakub Josef | 4762701 | 2017-04-05 16:16:24 +0200 | [diff] [blame] | 56 | event: |
Jakub Josef | 1bcaeb0 | 2017-04-07 12:56:49 +0200 | [diff] [blame] | 57 | ref: |
| 58 | - updated: {} |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 59 | param: |
| 60 | IMAGE_NAME: |
| 61 | type: string |
| 62 | default: "tcpcloud/{{name}}" |
| 63 | IMAGE_GIT_URL: |
| 64 | type: string |
Jakub Josef | a7b911c | 2017-04-05 15:09:01 +0200 | [diff] [blame] | 65 | default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 66 | IMAGE_BRANCH: |
| 67 | type: string |
| 68 | default: "{{branch}}" |
| 69 | IMAGE_CREDENTIALS_ID: |
| 70 | type: string |
| 71 | default: "gerrit" |
| 72 | IMAGE_TAGS: |
| 73 | type: string |
| 74 | default: "{{tags}}" |
| 75 | DOCKERFILE_PATH: |
| 76 | type: string |
| 77 | default: "{{dockerfile}}" |
| 78 | REGISTRY_URL: |
| 79 | type: string |
| 80 | default: "" |
| 81 | REGISTRY_CREDENTIALS_ID: |
| 82 | type: string |
Jakub Josef | fbb3ab9 | 2017-04-13 15:16:52 +0200 | [diff] [blame] | 83 | default: "dockerhub" |
| 84 | DOCKER_GIT_TAG: |
| 85 | type: boolean |
| 86 | default: "true" |