blob: 2056ee4c190aa1113b04c82e322a0445e3037516 [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"
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 Josef47627012017-04-05 16:16:24 +020041 trigger:
42 gerrit:
43 project:
44 "mk/docker-{{name}}":
45 branches:
Jakub Josefe098f152017-04-06 14:34:18 +020046 - "{{branch}}"
Jakub Josef47627012017-04-05 16:16:24 +020047 event:
48 patchset:
49 - created:
50 excludeDrafts: false
51 excludeTrivialRebase: false
52 excludeNoCodeChange: false
53 comment:
54 - addedContains:
55 commentAddedCommentContains: '(recheck|reverify)'
Jakub Josefceb3b652017-04-04 16:10:05 +020056 param:
57 IMAGE_NAME:
58 type: string
59 default: "tcpcloud/{{name}}"
60 IMAGE_GIT_URL:
61 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020062 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020063 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"