blob: 8803f18f3079523e77db6c8eac8c5c4c996489e6 [file] [log] [blame]
Martin Polreichf21c2f22019-01-29 14:50:06 +01001parameters:
2 _param:
3 jenkins_git_mirror_downstream_jobs: []
4 jenkins_pollscm_spec: "H/60 * * * *"
5 jenkins:
6 client:
7 job_template:
8 git_mirror_downstream_common:
9 name: git-mirror-downstream-{{name}}
10 jobs: ${_param:jenkins_git_mirror_downstream_jobs}
11 template:
12 discard:
13 build:
14 keep_num: 10
15 artifact:
16 keep_num: 10
17 type: workflow-scm
18 concurrent: false
19 scm:
20 type: git
21 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
22 branch: "${_param:jenkins_pipelines_branch}"
23 credentials: "gerrit"
24 script: git-mirror-pipeline.groovy
25 trigger:
26 pollscm:
27 spec: ${_param:jenkins_pollscm_spec}
28 param:
29 SOURCE_URL:
30 type: string
31 default: "{{upstream}}"
32 TARGET_URL:
33 type: string
34 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
35 CREDENTIALS_ID:
36 type: string
37 default: "gerrit"
38 BRANCHES:
39 type: string
40 default: "{{branches}}"
41 description: "Comma-separated list of branches to mirror"