blob: 1da507c0d4ea0adaeca21565bc1dea3fc32d7052 [file] [log] [blame]
Jakub Josefceb3b652017-04-04 16:10:05 +02001parameters:
2 jenkins:
3 client:
Jakub Josef0845aa82017-04-18 14:53:39 +02004 view:
5 Docker:
6 enabled: true
7 type: ListView
Jakub Josef69a72b92017-04-27 18:03:45 +02008 include_regex: ".*docker.*"
Jakub Josefceb3b652017-04-04 16:10:05 +02009 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"
Ruslan Kamaldinov36fd8482017-07-19 18:15:28 +040029 - name: jenkins
30 branch: "2.70"
31 tags: "2.70 latest"
32 dockerfile: "Dockerfile"
Jakub Josefceb3b652017-04-04 16:10:05 +020033 - name: phpldapadmin
34 branch: "master"
Jakub Joseffbb3ab92017-04-13 15:16:52 +020035 tags: "latest"
36 dockerfile: "image/Dockerfile"
37 - name: openldap
38 branch: "master"
39 tags: "latest"
Jakub Josefceb3b652017-04-04 16:10:05 +020040 dockerfile: "image/Dockerfile"
Filip Pytloun23567e62017-04-25 17:52:29 +020041 - name: mysql
42 branch: "master"
43 tags: "5.6 latest"
44 dockerfile: "5.6/Dockerfile"
Jakub Josefceb3b652017-04-04 16:10:05 +020045 template:
46 discard:
47 build:
48 keep_num: 5
49 artifact:
50 keep_num: 5
51 type: workflow-scm
52 concurrent: true
53 scm:
54 type: git
55 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
56 credentials: "gerrit"
57 script: docker-build-image-pipeline.groovy
Jakub Josef47627012017-04-05 16:16:24 +020058 trigger:
59 gerrit:
60 project:
61 "mk/docker-{{name}}":
62 branches:
Jakub Josefe098f152017-04-06 14:34:18 +020063 - "{{branch}}"
Jakub Josef47627012017-04-05 16:16:24 +020064 event:
Jakub Josef1bcaeb02017-04-07 12:56:49 +020065 ref:
66 - updated: {}
Jakub Josefceb3b652017-04-04 16:10:05 +020067 param:
68 IMAGE_NAME:
69 type: string
70 default: "tcpcloud/{{name}}"
71 IMAGE_GIT_URL:
72 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020073 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020074 IMAGE_BRANCH:
75 type: string
76 default: "{{branch}}"
77 IMAGE_CREDENTIALS_ID:
78 type: string
79 default: "gerrit"
80 IMAGE_TAGS:
81 type: string
82 default: "{{tags}}"
83 DOCKERFILE_PATH:
84 type: string
85 default: "{{dockerfile}}"
86 REGISTRY_URL:
87 type: string
88 default: ""
89 REGISTRY_CREDENTIALS_ID:
90 type: string
Jakub Joseffbb3ab92017-04-13 15:16:52 +020091 default: "dockerhub"
92 DOCKER_GIT_TAG:
93 type: boolean
Filip Pytloun23567e62017-04-25 17:52:29 +020094 default: "true"