blob: 7bb0dac125b5205cff10d144fdf0029c997f454c [file] [log] [blame]
Jakub Josefceb3b652017-04-04 16:10:05 +02001parameters:
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 Joseffbb3ab92017-04-13 15:16:52 +020026 tags: "latest"
27 dockerfile: "image/Dockerfile"
28 - name: openldap
29 branch: "master"
30 tags: "latest"
Jakub Josefceb3b652017-04-04 16:10:05 +020031 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 Josef47627012017-04-05 16:16:24 +020045 trigger:
46 gerrit:
47 project:
48 "mk/docker-{{name}}":
49 branches:
Jakub Josefe098f152017-04-06 14:34:18 +020050 - "{{branch}}"
Jakub Josef47627012017-04-05 16:16:24 +020051 event:
Jakub Josef1bcaeb02017-04-07 12:56:49 +020052 ref:
53 - updated: {}
Jakub Josefceb3b652017-04-04 16:10:05 +020054 param:
55 IMAGE_NAME:
56 type: string
57 default: "tcpcloud/{{name}}"
58 IMAGE_GIT_URL:
59 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020060 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020061 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 Joseffbb3ab92017-04-13 15:16:52 +020078 default: "dockerhub"
79 DOCKER_GIT_TAG:
80 type: boolean
81 default: "true"