Martin Polreich | f21c2f2 | 2019-01-29 14:50:06 +0100 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | jenkins_git_mirror_downstream_jobs: [] |
Martin Polreich | f21c2f2 | 2019-01-29 14:50:06 +0100 | [diff] [blame] | 4 | 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 Galkin | 4cf87b9 | 2019-06-19 17:53:07 +0400 | [diff] [blame^] | 22 | credentials: ${_param:jenkins_gerrit_credentials} |
Martin Polreich | f21c2f2 | 2019-01-29 14:50:06 +0100 | [diff] [blame] | 23 | script: git-mirror-pipeline.groovy |
Martin Polreich | f21c2f2 | 2019-01-29 14:50:06 +0100 | [diff] [blame] | 24 | 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" |