blob: 63c3f27e84abb565665a9aa78be355d86eeee670 [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"
60 credentials: "gerrit"
61 script: docker-build-image-pipeline.groovy
Jakub Josef47627012017-04-05 16:16:24 +020062 trigger:
63 gerrit:
64 project:
65 "mk/docker-{{name}}":
66 branches:
Jakub Josefe098f152017-04-06 14:34:18 +020067 - "{{branch}}"
Jakub Josef47627012017-04-05 16:16:24 +020068 event:
Jakub Josef1bcaeb02017-04-07 12:56:49 +020069 ref:
70 - updated: {}
Jakub Josefceb3b652017-04-04 16:10:05 +020071 param:
72 IMAGE_NAME:
73 type: string
74 default: "tcpcloud/{{name}}"
75 IMAGE_GIT_URL:
76 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020077 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020078 IMAGE_BRANCH:
79 type: string
80 default: "{{branch}}"
81 IMAGE_CREDENTIALS_ID:
82 type: string
83 default: "gerrit"
84 IMAGE_TAGS:
85 type: string
86 default: "{{tags}}"
87 DOCKERFILE_PATH:
88 type: string
89 default: "{{dockerfile}}"
90 REGISTRY_URL:
91 type: string
92 default: ""
93 REGISTRY_CREDENTIALS_ID:
94 type: string
Jakub Joseffbb3ab92017-04-13 15:16:52 +020095 default: "dockerhub"
96 DOCKER_GIT_TAG:
97 type: boolean
Filip Pytloun23567e62017-04-25 17:52:29 +020098 default: "true"