blob: f4a6a8780d533c37337833f9c2be4b24590dd4e2 [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:
Jakub Josef1bcaeb02017-04-07 12:56:49 +020048 ref:
49 - updated: {}
Jakub Josefceb3b652017-04-04 16:10:05 +020050 param:
51 IMAGE_NAME:
52 type: string
53 default: "tcpcloud/{{name}}"
54 IMAGE_GIT_URL:
55 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020056 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020057 IMAGE_BRANCH:
58 type: string
59 default: "{{branch}}"
60 IMAGE_CREDENTIALS_ID:
61 type: string
62 default: "gerrit"
63 IMAGE_TAGS:
64 type: string
65 default: "{{tags}}"
66 DOCKERFILE_PATH:
67 type: string
68 default: "{{dockerfile}}"
69 REGISTRY_URL:
70 type: string
71 default: ""
72 REGISTRY_CREDENTIALS_ID:
73 type: string
74 default: "dockerhub"