blob: 5a6257c362f3635d33a5ebe00cb3b937058f0c42 [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}}"
28 TARGET_URL:
29 type: string
30 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
31 CREDENTIALS_ID:
32 type: string
33 default: "gerrit"
34 BRANCHES:
35 type: string
36 default: "{{branches}}"
37 description: "Comma-separated list of branches to mirror"