blob: 39aaa5ff98caf3a3509a26488f166b16939a9802 [file] [log] [blame]
Martin Polreichf21c2f22019-01-29 14:50:06 +01001parameters:
2 _param:
3 jenkins_git_mirror_downstream_jobs: []
Martin Polreichf21c2f22019-01-29 14:50:06 +01004 jenkins:
5 client:
6 job_template:
7 git_mirror_downstream_common:
8 name: git-mirror-downstream-{{name}}
9 jobs: ${_param:jenkins_git_mirror_downstream_jobs}
10 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 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkin4cf87b92019-06-19 17:53:07 +040022 credentials: ${_param:jenkins_gerrit_credentials}
Martin Polreichf21c2f22019-01-29 14:50:06 +010023 script: git-mirror-pipeline.groovy
Martin Polreichf21c2f22019-01-29 14:50:06 +010024 param:
25 SOURCE_URL:
26 type: string
27 default: "{{upstream}}"
Ivan Berezovskiyf3c493d2019-07-09 15:51:07 +040028 SOURCE_CREDENTIALS:
29 type: string
30 default: "{{source_credentials}}"
Martin Polreichf21c2f22019-01-29 14:50:06 +010031 TARGET_URL:
32 type: string
33 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
34 CREDENTIALS_ID:
35 type: string
36 default: "gerrit"
37 BRANCHES:
38 type: string
39 default: "{{branches}}"
40 description: "Comma-separated list of branches to mirror"