blob: d4c15b6fbd8146e86cfed7c42acf05665112ca78 [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"
Jakub Josef34aa4e92018-01-19 15:09:51 +010019 tags: "2.13.6"
20 dockerfile: "Dockerfile"
21 - name: gerrit
22 branch: "2.14.6"
23 tags: "2.14.6 latest"
Jakub Josefceb3b652017-04-04 16:10:05 +020024 dockerfile: "Dockerfile"
25 - name: jenkins
chnyda8c676a02017-10-23 14:03:54 +020026 branch: "master"
27 tags: ""
chnyda85805812017-10-23 16:16:53 +020028 dockerfile: "Dockerfile"
chnyda8c676a02017-10-23 14:03:54 +020029 - name: jenkins
Jakub Josefceb3b652017-04-04 16:10:05 +020030 branch: "2.32.3"
31 tags: "2.32"
32 dockerfile: "Dockerfile"
33 - name: jenkins
Filip Pytlounfbfbddf2017-08-16 21:49:42 +020034 branch: "2.73"
Jakub Josef34aa4e92018-01-19 15:09:51 +010035 tags: "2.73"
Ruslan Kamaldinov36fd8482017-07-19 18:15:28 +040036 dockerfile: "Dockerfile"
Jakub Josefceb3b652017-04-04 16:10:05 +020037 - name: phpldapadmin
38 branch: "master"
Jakub Joseffbb3ab92017-04-13 15:16:52 +020039 tags: "latest"
40 dockerfile: "image/Dockerfile"
41 - name: openldap
42 branch: "master"
43 tags: "latest"
Jakub Josefceb3b652017-04-04 16:10:05 +020044 dockerfile: "image/Dockerfile"
Filip Pytloun23567e62017-04-25 17:52:29 +020045 - name: mysql
46 branch: "master"
47 tags: "5.6 latest"
48 dockerfile: "5.6/Dockerfile"
chnydaa9cf0d32017-10-12 14:14:03 +020049 - name: jnlp-slave
50 branch: "master"
51 tags: "latest"
52 dockerfile: "Dockerfile"
Jakub Josefceb3b652017-04-04 16:10:05 +020053 template:
54 discard:
55 build:
56 keep_num: 5
57 artifact:
58 keep_num: 5
59 type: workflow-scm
60 concurrent: true
61 scm:
62 type: git
63 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010064 branch: "${_param:jenkins_pipelines_branch}"
Jakub Josefceb3b652017-04-04 16:10:05 +020065 credentials: "gerrit"
66 script: docker-build-image-pipeline.groovy
Jakub Josef47627012017-04-05 16:16:24 +020067 trigger:
68 gerrit:
69 project:
70 "mk/docker-{{name}}":
71 branches:
Jakub Josefe098f152017-04-06 14:34:18 +020072 - "{{branch}}"
Jakub Josef47627012017-04-05 16:16:24 +020073 event:
Jakub Josef1bcaeb02017-04-07 12:56:49 +020074 ref:
75 - updated: {}
Jakub Josefceb3b652017-04-04 16:10:05 +020076 param:
77 IMAGE_NAME:
78 type: string
79 default: "tcpcloud/{{name}}"
80 IMAGE_GIT_URL:
81 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020082 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020083 IMAGE_BRANCH:
84 type: string
85 default: "{{branch}}"
86 IMAGE_CREDENTIALS_ID:
87 type: string
88 default: "gerrit"
89 IMAGE_TAGS:
90 type: string
91 default: "{{tags}}"
92 DOCKERFILE_PATH:
93 type: string
94 default: "{{dockerfile}}"
95 REGISTRY_URL:
96 type: string
97 default: ""
98 REGISTRY_CREDENTIALS_ID:
99 type: string
Jakub Joseffbb3ab92017-04-13 15:16:52 +0200100 default: "dockerhub"
101 DOCKER_GIT_TAG:
102 type: boolean
Filip Pytloun23567e62017-04-25 17:52:29 +0200103 default: "true"