blob: 334db193e23fb1c5ec293b1d631723b7b0887313 [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
chnyda62282e72017-12-19 13:12:06 +010010 build_trigger: ""
chnydaff4b1182017-05-22 11:05:25 +020011 - name: ci
chnyda7612b912017-06-19 16:18:09 +020012 repo: mk
chnyda62282e72017-12-19 13:12:06 +010013 build_trigger: "H H(20-23) * * *"
chnydaa0ef5af2017-06-19 10:42:21 +020014 - name: prometheus
chnyda7612b912017-06-19 16:18:09 +020015 repo: mcp
chnyda62282e72017-12-19 13:12:06 +010016 build_trigger: ""
chnydaff4b1182017-05-22 11:05:25 +020017 template:
18 discard:
19 build:
20 keep_num: 25
21 artifact:
22 keep_num: 25
23 type: workflow-scm
24 concurrent: true
25 scm:
26 type: git
chnyda7612b912017-06-19 16:18:09 +020027 url: "${_param:jenkins_gerrit_url}/{{repo}}/docker-{{name}}"
chnydaff4b1182017-05-22 11:05:25 +020028 credentials: "gerrit"
29 trigger:
30 gerrit:
31 project:
chnydabafee2e2017-09-22 16:00:28 +020032 "{{repo}}/docker-{{name}}":
chnydaff4b1182017-05-22 11:05:25 +020033 branches:
34 - master
35 event:
36 ref:
37 - updated: {}
chnyda62282e72017-12-19 13:12:06 +010038 pollscm:
39 spec: "{{build_trigger}}"
chnydaff4b1182017-05-22 11:05:25 +020040 param:
41 IMAGE_GIT_URL:
42 type: string
chnyda7612b912017-06-19 16:18:09 +020043 default: "${_param:jenkins_gerrit_url}/{{repo}}/docker-{{name}}"
chnydaff4b1182017-05-22 11:05:25 +020044 IMAGE_BRANCH:
45 type: string
46 default: "master"
47 IMAGE_CREDENTIALS_ID:
48 type: string
49 default: "gerrit"
50 IMAGE_TAGS:
51 type: string
52 default: "latest"
53 REGISTRY_URL:
54 type: string
55 default: ""
56 REGISTRY_CREDENTIALS_ID:
57 type: string
58 default: "dockerhub"
59 DOCKER_GIT_TAG:
60 type: boolean
61 default: "true"
chnyda303393e2017-09-20 11:46:46 +020062 EXTRA_REPO_URL:
63 type: string
64 default: "${_param:jenkins_aptly_url}"