blob: 084835c7424897e83b16ed7e75d2d16504293850 [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
9 - name: ci
chnydaa0ef5af2017-06-19 10:42:21 +020010 - name: prometheus
chnydaff4b1182017-05-22 11:05:25 +020011 template:
12 discard:
13 build:
14 keep_num: 25
15 artifact:
16 keep_num: 25
17 type: workflow-scm
18 concurrent: true
19 scm:
20 type: git
21 url: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
22 credentials: "gerrit"
23 trigger:
24 gerrit:
25 project:
26 "mk/docker-{{name}}":
27 branches:
28 - master
29 event:
30 ref:
31 - updated: {}
32 param:
33 IMAGE_GIT_URL:
34 type: string
35 default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}"
36 IMAGE_BRANCH:
37 type: string
38 default: "master"
39 IMAGE_CREDENTIALS_ID:
40 type: string
41 default: "gerrit"
42 IMAGE_TAGS:
43 type: string
44 default: "latest"
45 REGISTRY_URL:
46 type: string
47 default: ""
48 REGISTRY_CREDENTIALS_ID:
49 type: string
50 default: "dockerhub"
51 DOCKER_GIT_TAG:
52 type: boolean
53 default: "true"