blob: e11e63c31c08c3932303c9feb14ef9ee554c169c [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:
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
39 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
40 TARGET_URL:
41 type: string
42 default: "{{upstream}}"
43 CREDENTIALS_ID:
44 type: string
45 default: "gerrit"
46 BRANCHES:
47 type: string
48 default: "{{branches}}"