blob: 1a2e4d90a423e70aee056b836bd3aa5eda4d1aae [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
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"
Filip Pytloun23567e62017-04-25 17:52:29 +020037 - name: mysql
38 branch: "master"
39 tags: "5.6 latest"
40 dockerfile: "5.6/Dockerfile"
Jakub Josefceb3b652017-04-04 16:10:05 +020041 template:
42 discard:
43 build:
44 keep_num: 5
45 artifact:
46 keep_num: 5
47 type: workflow-scm
48 concurrent: true
49 scm:
50 type: git
51 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
52 credentials: "gerrit"
53 script: docker-build-image-pipeline.groovy
Jakub Josef47627012017-04-05 16:16:24 +020054 trigger:
55 gerrit:
56 project:
57 "mk/docker-{{name}}":
58 branches:
Jakub Josefe098f152017-04-06 14:34:18 +020059 - "{{branch}}"
Jakub Josef47627012017-04-05 16:16:24 +020060 event:
Jakub Josef1bcaeb02017-04-07 12:56:49 +020061 ref:
62 - updated: {}
Jakub Josefceb3b652017-04-04 16:10:05 +020063 param:
64 IMAGE_NAME:
65 type: string
66 default: "tcpcloud/{{name}}"
67 IMAGE_GIT_URL:
68 type: string
Jakub Josefa7b911c2017-04-05 15:09:01 +020069 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
Jakub Josefceb3b652017-04-04 16:10:05 +020070 IMAGE_BRANCH:
71 type: string
72 default: "{{branch}}"
73 IMAGE_CREDENTIALS_ID:
74 type: string
75 default: "gerrit"
76 IMAGE_TAGS:
77 type: string
78 default: "{{tags}}"
79 DOCKERFILE_PATH:
80 type: string
81 default: "{{dockerfile}}"
82 REGISTRY_URL:
83 type: string
84 default: ""
85 REGISTRY_CREDENTIALS_ID:
86 type: string
Jakub Joseffbb3ab92017-04-13 15:16:52 +020087 default: "dockerhub"
88 DOCKER_GIT_TAG:
89 type: boolean
Filip Pytloun23567e62017-04-25 17:52:29 +020090 default: "true"