blob: 9333e6ae3ad08d339aeb584b5cf2ac16ac870c9a [file] [log] [blame]
Filip Pytloun217e7842017-03-14 19:58:41 +01001parameters:
Filip Pytloun260a9502017-03-16 12:47:22 +01002 _param:
3 jenkins_git_mirror_downstream_jobs: []
Filip Pytloun217e7842017-03-14 19:58:41 +01004 jenkins:
5 client:
6 job_template:
Filip Pytloun260a9502017-03-16 12:47:22 +01007 git_mirror_downstream_common:
8 name: git-mirror-downstream-{{name}}
9 jobs: ${_param:jenkins_git_mirror_downstream_jobs}
Filip Pytloun217e7842017-03-14 19:58:41 +010010 template:
11 discard:
12 build:
13 keep_num: 10
14 artifact:
15 keep_num: 10
16 type: workflow-scm
17 concurrent: false
18 scm:
19 type: git
20 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
21 credentials: "gerrit"
22 script: git-mirror-pipeline.groovy
23 trigger:
24 gerrit:
25 project:
Filip Pytlounfefa7b62017-03-14 20:04:59 +010026 "{{downstream}}":
Filip Pytloun217e7842017-03-14 19:58:41 +010027 branches:
28 - master
29 message:
30 build_successful: "Build successful"
31 build_unstable: "Build unstable"
32 build_failure: "Build failed"
33 event:
34 ref:
35 - updated
36 param:
37 SOURCE_URL:
38 type: string
Filip Pytloun260a9502017-03-16 12:47:22 +010039 default: "{{upstream}}"
Filip Pytloun217e7842017-03-14 19:58:41 +010040 TARGET_URL:
41 type: string
Filip Pytloun260a9502017-03-16 12:47:22 +010042 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
Filip Pytloun217e7842017-03-14 19:58:41 +010043 CREDENTIALS_ID:
44 type: string
45 default: "gerrit"
46 BRANCHES:
47 type: string
48 default: "{{branches}}"