blob: 0ddc0cebb7fbf15f61e4a00679ba8452adae0134 [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"
22 credentials: "gerrit"
23 script: git-mirror-pipeline.groovy
24 trigger:
Filip Pytlound9adf472017-03-17 09:24:13 +010025 pollscm:
26 spec: ${_param:jenkins_pollscm_spec}
Filip Pytloun217e7842017-03-14 19:58:41 +010027 param:
28 SOURCE_URL:
29 type: string
Filip Pytloun260a9502017-03-16 12:47:22 +010030 default: "{{upstream}}"
Filip Pytloun217e7842017-03-14 19:58:41 +010031 TARGET_URL:
32 type: string
Filip Pytloun260a9502017-03-16 12:47:22 +010033 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
Filip Pytloun217e7842017-03-14 19:58:41 +010034 CREDENTIALS_ID:
35 type: string
36 default: "gerrit"
37 BRANCHES:
38 type: string
39 default: "{{branches}}"