blob: c5f7d448839d22d41e7d23b784a1fe0f4393877b [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
chnyda8c676a02017-10-23 14:03:54 +020022 branch: "master"
23 tags: ""
chnyda85805812017-10-23 16:16:53 +020024 dockerfile: "Dockerfile"
chnyda8c676a02017-10-23 14:03:54 +020025 - name: jenkins
Jakub Josefceb3b652017-04-04 16:10:05 +020026 branch: "2.32.3"
27 tags: "2.32"
28 dockerfile: "Dockerfile"
29 - name: jenkins
Filip Pytlounfbfbddf2017-08-16 21:49:42 +020030 branch: "2.73"
31 tags: "2.73 latest"
Ruslan Kamaldinov36fd8482017-07-19 18:15:28 +040032 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"
chnydaa9cf0d32017-10-12 14:14:03 +020045 - name: jnlp-slave
46 branch: "master"
47 tags: "latest"
48 dockerfile: "Dockerfile"
Jakub Josefceb3b652017-04-04 16:10:05 +020049 template:
50 discard:
51 build:
52 keep_num: 5
53 artifact:
54 keep_num: 5
55 type: workflow-scm
56 concurrent: true
57 scm:
58 type: git
59 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010060 branch: "${_param:jenkins_pipelines_branch}"
Jakub Josefceb3b652017-04-04 16:10:05 +020061 credentials: "gerrit"
62 script: docker-build-image-pipeline.groovy
Jakub Josef47627012017-04-05 16:16:24 +020063 trigger:
64 gerrit:
65 project:
66 "mk/docker-{{name}}":
67 branches:
Jakub Josefe098f152017-04-06 14:34:18 +020068 - "{{branch}}"
Jakub Josef47627012017-04-05 16:16:24 +020069 event:
Jakub Josef1bcaeb02017-04-07 12:56:49 +020070 ref:
71 - updated: {}
Jakub Josefceb3b652017-04-04 16:10:05 +020072 param:
73 IMAGE_NAME:
74 type: string
75 default: "tcpcloud/{{name}}"
76 IMAGE_GIT_URL:
77 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020078 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020079 IMAGE_BRANCH:
80 type: string
81 default: "{{branch}}"
82 IMAGE_CREDENTIALS_ID:
83 type: string
84 default: "gerrit"
85 IMAGE_TAGS:
86 type: string
87 default: "{{tags}}"
88 DOCKERFILE_PATH:
89 type: string
90 default: "{{dockerfile}}"
91 REGISTRY_URL:
92 type: string
93 default: ""
94 REGISTRY_CREDENTIALS_ID:
95 type: string
Jakub Joseffbb3ab92017-04-13 15:16:52 +020096 default: "dockerhub"
97 DOCKER_GIT_TAG:
98 type: boolean
Filip Pytloun23567e62017-04-25 17:52:29 +020099 default: "true"