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