blob: 649ccdcc1aaf6ff74e800f63d4c3602b9cf4c2db [file] [log] [blame]
Filip Pytloun217e7842017-03-14 19:58:41 +01001parameters:
Filip Pytloun260a9502017-03-16 12:47:22 +01002 _param:
3 jenkins_git_mirror_downstream_jobs: []
Filip Pytlound9adf472017-03-17 09:24:13 +01004 jenkins_pollscm_spec: "H/60 * * * *"
Filip Pytloun217e7842017-03-14 19:58:41 +01005 jenkins:
6 client:
7 job_template:
Filip Pytloun260a9502017-03-16 12:47:22 +01008 git_mirror_downstream_common:
9 name: git-mirror-downstream-{{name}}
10 jobs: ${_param:jenkins_git_mirror_downstream_jobs}
Filip Pytloun217e7842017-03-14 19:58:41 +010011 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"
Jakub Josef7938b532017-12-12 18:02:03 +010022 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun217e7842017-03-14 19:58:41 +010023 credentials: "gerrit"
24 script: git-mirror-pipeline.groovy
25 trigger:
Filip Pytlound9adf472017-03-17 09:24:13 +010026 pollscm:
27 spec: ${_param:jenkins_pollscm_spec}
Filip Pytloun217e7842017-03-14 19:58:41 +010028 param:
29 SOURCE_URL:
30 type: string
Filip Pytloun260a9502017-03-16 12:47:22 +010031 default: "{{upstream}}"
Filip Pytloun217e7842017-03-14 19:58:41 +010032 TARGET_URL:
33 type: string
Filip Pytloun260a9502017-03-16 12:47:22 +010034 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
Filip Pytloun217e7842017-03-14 19:58:41 +010035 CREDENTIALS_ID:
36 type: string
37 default: "gerrit"
38 BRANCHES:
39 type: string
40 default: "{{branches}}"