blob: 2f1f49abf4e42152c8cae0c0398ea4d3c9f32419 [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
8 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
22 branch: "2.32.3"
23 tags: "2.32"
24 dockerfile: "Dockerfile"
25 - name: jenkins
26 branch: "2.52"
27 tags: "2.52 latest"
28 dockerfile: "Dockerfile"
29 - name: phpldapadmin
30 branch: "master"
Jakub Joseffbb3ab92017-04-13 15:16:52 +020031 tags: "latest"
32 dockerfile: "image/Dockerfile"
33 - name: openldap
34 branch: "master"
35 tags: "latest"
Jakub Josefceb3b652017-04-04 16:10:05 +020036 dockerfile: "image/Dockerfile"
37 template:
38 discard:
39 build:
40 keep_num: 5
41 artifact:
42 keep_num: 5
43 type: workflow-scm
44 concurrent: true
45 scm:
46 type: git
47 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
48 credentials: "gerrit"
49 script: docker-build-image-pipeline.groovy
Jakub Josef47627012017-04-05 16:16:24 +020050 trigger:
51 gerrit:
52 project:
53 "mk/docker-{{name}}":
54 branches:
Jakub Josefe098f152017-04-06 14:34:18 +020055 - "{{branch}}"
Jakub Josef47627012017-04-05 16:16:24 +020056 event:
Jakub Josef1bcaeb02017-04-07 12:56:49 +020057 ref:
58 - updated: {}
Jakub Josefceb3b652017-04-04 16:10:05 +020059 param:
60 IMAGE_NAME:
61 type: string
62 default: "tcpcloud/{{name}}"
63 IMAGE_GIT_URL:
64 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020065 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020066 IMAGE_BRANCH:
67 type: string
68 default: "{{branch}}"
69 IMAGE_CREDENTIALS_ID:
70 type: string
71 default: "gerrit"
72 IMAGE_TAGS:
73 type: string
74 default: "{{tags}}"
75 DOCKERFILE_PATH:
76 type: string
77 default: "{{dockerfile}}"
78 REGISTRY_URL:
79 type: string
80 default: ""
81 REGISTRY_CREDENTIALS_ID:
82 type: string
Jakub Joseffbb3ab92017-04-13 15:16:52 +020083 default: "dockerhub"
84 DOCKER_GIT_TAG:
85 type: boolean
86 default: "true"