Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 1 | parameters: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 2 | _param: |
| 3 | jenkins_git_mirror_downstream_jobs: [] |
Filip Pytloun | d9adf47 | 2017-03-17 09:24:13 +0100 | [diff] [blame] | 4 | jenkins_pollscm_spec: "H/60 * * * *" |
Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 5 | jenkins: |
| 6 | client: |
| 7 | job_template: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 8 | git_mirror_downstream_common: |
| 9 | name: git-mirror-downstream-{{name}} |
| 10 | jobs: ${_param:jenkins_git_mirror_downstream_jobs} |
Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 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 | credentials: "gerrit" |
| 23 | script: git-mirror-pipeline.groovy |
| 24 | trigger: |
Filip Pytloun | d9adf47 | 2017-03-17 09:24:13 +0100 | [diff] [blame] | 25 | pollscm: |
| 26 | spec: ${_param:jenkins_pollscm_spec} |
Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 27 | param: |
| 28 | SOURCE_URL: |
| 29 | type: string |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 30 | default: "{{upstream}}" |
Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 31 | TARGET_URL: |
| 32 | type: string |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 33 | default: "${_param:jenkins_gerrit_url}/{{downstream}}" |
Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 34 | CREDENTIALS_ID: |
| 35 | type: string |
| 36 | default: "gerrit" |
| 37 | BRANCHES: |
| 38 | type: string |
| 39 | default: "{{branches}}" |