blob: 8334f2399b6fc9ac1441099bc0ae432b0897d231 [file] [log] [blame]
Filip Pytloun217e7842017-03-14 19:58:41 +01001parameters:
Filip Pytloun260a9502017-03-16 12:47:22 +01002 _param:
3 jenkins_git_mirror_upstream_jobs: []
Filip Pytloun217e7842017-03-14 19:58:41 +01004 jenkins:
5 client:
6 job_template:
7 git_mirror_upstream_common:
8 name: git-mirror-upstream-{{name}}
Filip Pytloun260a9502017-03-16 12:47:22 +01009 jobs: ${_param:jenkins_git_mirror_upstream_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"
Jakub Josef7938b532017-12-12 18:02:03 +010021 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun217e7842017-03-14 19:58:41 +010022 credentials: "gerrit"
23 script: git-mirror-pipeline.groovy
24 trigger:
25 gerrit:
26 project:
Filip Pytlounfefa7b62017-03-14 20:04:59 +010027 "{{downstream}}":
Filip Pytloun217e7842017-03-14 19:58:41 +010028 branches:
chnyda5adc4532017-09-20 15:08:43 +020029 - compare_type: "REG_EXP"
30 name: "(.*?)"
Filip Pytloun217e7842017-03-14 19:58:41 +010031 message:
32 build_successful: "Build successful"
33 build_unstable: "Build unstable"
34 build_failure: "Build failed"
35 event:
36 ref:
37 - updated
38 param:
39 SOURCE_URL:
40 type: string
41 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
42 TARGET_URL:
43 type: string
44 default: "{{upstream}}"
45 CREDENTIALS_ID:
46 type: string
47 default: "gerrit"
48 BRANCHES:
49 type: string
50 default: "{{branches}}"