blob: 64dc03f406088becd4f943a02f346df1afb4fd2f [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: ""
24 - name: jenkins
Jakub Josefceb3b652017-04-04 16:10:05 +020025 branch: "2.32.3"
26 tags: "2.32"
27 dockerfile: "Dockerfile"
28 - name: jenkins
Filip Pytlounfbfbddf2017-08-16 21:49:42 +020029 branch: "2.73"
30 tags: "2.73 latest"
Ruslan Kamaldinov36fd8482017-07-19 18:15:28 +040031 dockerfile: "Dockerfile"
Jakub Josefceb3b652017-04-04 16:10:05 +020032 - name: phpldapadmin
33 branch: "master"
Jakub Joseffbb3ab92017-04-13 15:16:52 +020034 tags: "latest"
35 dockerfile: "image/Dockerfile"
36 - name: openldap
37 branch: "master"
38 tags: "latest"
Jakub Josefceb3b652017-04-04 16:10:05 +020039 dockerfile: "image/Dockerfile"
Filip Pytloun23567e62017-04-25 17:52:29 +020040 - name: mysql
41 branch: "master"
42 tags: "5.6 latest"
43 dockerfile: "5.6/Dockerfile"
chnydaa9cf0d32017-10-12 14:14:03 +020044 - name: jnlp-slave
45 branch: "master"
46 tags: "latest"
47 dockerfile: "Dockerfile"
Jakub Josefceb3b652017-04-04 16:10:05 +020048 template:
49 discard:
50 build:
51 keep_num: 5
52 artifact:
53 keep_num: 5
54 type: workflow-scm
55 concurrent: true
56 scm:
57 type: git
58 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
59 credentials: "gerrit"
60 script: docker-build-image-pipeline.groovy
Jakub Josef47627012017-04-05 16:16:24 +020061 trigger:
62 gerrit:
63 project:
64 "mk/docker-{{name}}":
65 branches:
Jakub Josefe098f152017-04-06 14:34:18 +020066 - "{{branch}}"
Jakub Josef47627012017-04-05 16:16:24 +020067 event:
Jakub Josef1bcaeb02017-04-07 12:56:49 +020068 ref:
69 - updated: {}
Jakub Josefceb3b652017-04-04 16:10:05 +020070 param:
71 IMAGE_NAME:
72 type: string
73 default: "tcpcloud/{{name}}"
74 IMAGE_GIT_URL:
75 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020076 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020077 IMAGE_BRANCH:
78 type: string
79 default: "{{branch}}"
80 IMAGE_CREDENTIALS_ID:
81 type: string
82 default: "gerrit"
83 IMAGE_TAGS:
84 type: string
85 default: "{{tags}}"
86 DOCKERFILE_PATH:
87 type: string
88 default: "{{dockerfile}}"
89 REGISTRY_URL:
90 type: string
91 default: ""
92 REGISTRY_CREDENTIALS_ID:
93 type: string
Jakub Joseffbb3ab92017-04-13 15:16:52 +020094 default: "dockerhub"
95 DOCKER_GIT_TAG:
96 type: boolean
Filip Pytloun23567e62017-04-25 17:52:29 +020097 default: "true"