blob: 220176ced6861bd3af55860545ec5027c679262b [file] [log] [blame]
Jakub Josefceb3b652017-04-04 16:10:05 +02001parameters:
2 jenkins:
3 client:
4 job_template:
5 docker-build-image:
6 name: docker-build-image-{{name}}-{{branch}}
7 jobs:
8 - name: gerrit
9 branch: "2.12.7"
10 tags: "2.12.7"
11 dockerfile: "Dockerfile"
12 - name: gerrit
13 branch: "2.13.6"
14 tags: "2.13.6 latest"
15 dockerfile: "Dockerfile"
16 - name: jenkins
17 branch: "2.32.3"
18 tags: "2.32"
19 dockerfile: "Dockerfile"
20 - name: jenkins
21 branch: "2.52"
22 tags: "2.52 latest"
23 dockerfile: "Dockerfile"
24 - name: phpldapadmin
25 branch: "master"
26 tags: "0.16.2 latest"
27 dockerfile: "image/Dockerfile"
28 template:
29 discard:
30 build:
31 keep_num: 5
32 artifact:
33 keep_num: 5
34 type: workflow-scm
35 concurrent: true
36 scm:
37 type: git
38 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
39 credentials: "gerrit"
40 script: docker-build-image-pipeline.groovy
41 param:
42 IMAGE_NAME:
43 type: string
44 default: "tcpcloud/{{name}}"
45 IMAGE_GIT_URL:
46 type: string
47 default: ${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
48 IMAGE_BRANCH:
49 type: string
50 default: "{{branch}}"
51 IMAGE_CREDENTIALS_ID:
52 type: string
53 default: "gerrit"
54 IMAGE_TAGS:
55 type: string
56 default: "{{tags}}"
57 DOCKERFILE_PATH:
58 type: string
59 default: "{{dockerfile}}"
60 REGISTRY_URL:
61 type: string
62 default: ""
63 REGISTRY_CREDENTIALS_ID:
64 type: string
65 default: "dockerhub"