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