blob: cc267d996e81c833d1427df7ad69fdceeceecc27 [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"
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:
chnyda5adc4532017-09-20 15:08:43 +020028 - compare_type: "REG_EXP"
29 name: "(.*?)"
Filip Pytloun217e7842017-03-14 19:58:41 +010030 message:
31 build_successful: "Build successful"
32 build_unstable: "Build unstable"
33 build_failure: "Build failed"
34 event:
35 ref:
36 - updated
37 param:
38 SOURCE_URL:
39 type: string
40 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
41 TARGET_URL:
42 type: string
43 default: "{{upstream}}"
44 CREDENTIALS_ID:
45 type: string
46 default: "gerrit"
47 BRANCHES:
48 type: string
49 default: "{{branches}}"