blob: 206a2d86782b94b88decf0a2b9aa99f5ffb36cfc [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"
azvyagintsev7f8509d2018-02-20 18:51:22 +020053 - name: docker-ci-rally
54 branch: "master"
55 tags: "latest"
56 dockerfile: "Dockerfile"
57 - name: docker-ci-tempest
58 branch: "master"
59 tags: "latest"
60 dockerfile: "Dockerfile"
Jakub Josefceb3b652017-04-04 16:10:05 +020061 template:
62 discard:
63 build:
64 keep_num: 5
65 artifact:
66 keep_num: 5
67 type: workflow-scm
68 concurrent: true
69 scm:
70 type: git
71 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010072 branch: "${_param:jenkins_pipelines_branch}"
Jakub Josefceb3b652017-04-04 16:10:05 +020073 credentials: "gerrit"
74 script: docker-build-image-pipeline.groovy
Jakub Josef47627012017-04-05 16:16:24 +020075 trigger:
76 gerrit:
77 project:
78 "mk/docker-{{name}}":
79 branches:
Jakub Josefe098f152017-04-06 14:34:18 +020080 - "{{branch}}"
Jakub Josef47627012017-04-05 16:16:24 +020081 event:
Jakub Josef1bcaeb02017-04-07 12:56:49 +020082 ref:
83 - updated: {}
Jakub Josefceb3b652017-04-04 16:10:05 +020084 param:
85 IMAGE_NAME:
86 type: string
87 default: "tcpcloud/{{name}}"
88 IMAGE_GIT_URL:
89 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020090 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020091 IMAGE_BRANCH:
92 type: string
93 default: "{{branch}}"
94 IMAGE_CREDENTIALS_ID:
95 type: string
96 default: "gerrit"
97 IMAGE_TAGS:
98 type: string
99 default: "{{tags}}"
100 DOCKERFILE_PATH:
101 type: string
102 default: "{{dockerfile}}"
103 REGISTRY_URL:
104 type: string
105 default: ""
106 REGISTRY_CREDENTIALS_ID:
107 type: string
Jakub Joseffbb3ab92017-04-13 15:16:52 +0200108 default: "dockerhub"
109 DOCKER_GIT_TAG:
110 type: boolean
Filip Pytloun23567e62017-04-25 17:52:29 +0200111 default: "true"