blob: ca1d0581bac07693560c29d5e2eb90240d2cef32 [file] [log] [blame]
chnydaff4b1182017-05-22 11:05:25 +02001parameters:
2 jenkins:
3 client:
Jakub Josef1916e232017-05-24 14:27:08 +02004 job_template:
chnydaff4b1182017-05-22 11:05:25 +02005 docker-build-images:
Jakub Josefb5f67002017-05-22 18:45:46 +02006 name: "docker-build-images-{{name}}"
chnydaff4b1182017-05-22 11:05:25 +02007 jobs:
8 - name: aptly
chnyda7612b912017-06-19 16:18:09 +02009 repo: mk
chnydaff4b1182017-05-22 11:05:25 +020010 - name: ci
chnyda7612b912017-06-19 16:18:09 +020011 repo: mk
chnydaa0ef5af2017-06-19 10:42:21 +020012 - name: prometheus
chnyda7612b912017-06-19 16:18:09 +020013 repo: mcp
chnydaff4b1182017-05-22 11:05:25 +020014 template:
15 discard:
16 build:
17 keep_num: 25
18 artifact:
19 keep_num: 25
20 type: workflow-scm
21 concurrent: true
22 scm:
23 type: git
chnyda7612b912017-06-19 16:18:09 +020024 url: "${_param:jenkins_gerrit_url}/{{repo}}/docker-{{name}}"
chnydaff4b1182017-05-22 11:05:25 +020025 credentials: "gerrit"
26 trigger:
27 gerrit:
28 project:
29 "mk/docker-{{name}}":
30 branches:
31 - master
32 event:
33 ref:
34 - updated: {}
35 param:
36 IMAGE_GIT_URL:
37 type: string
chnyda7612b912017-06-19 16:18:09 +020038 default: "${_param:jenkins_gerrit_url}/{{repo}}/docker-{{name}}"
chnydaff4b1182017-05-22 11:05:25 +020039 IMAGE_BRANCH:
40 type: string
41 default: "master"
42 IMAGE_CREDENTIALS_ID:
43 type: string
44 default: "gerrit"
45 IMAGE_TAGS:
46 type: string
47 default: "latest"
48 REGISTRY_URL:
49 type: string
50 default: ""
51 REGISTRY_CREDENTIALS_ID:
52 type: string
53 default: "dockerhub"
54 DOCKER_GIT_TAG:
55 type: boolean
56 default: "true"