chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | jenkins_pollscm_spec: "H/60 * * * *" |
| 4 | jenkins: |
| 5 | client: |
| 6 | job_template: |
| 7 | git-mirror-2way-common: |
| 8 | name: git-mirror-2way-{{name}} |
| 9 | jobs: |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 10 | - name: mcp-common-scripts |
| 11 | source: mcp/mcp-common-scripts |
| 12 | target: Mirantis/mcp-common-scripts |
| 13 | branches: "master" |
azvyagintsev | 8deb07e | 2018-02-23 12:35:44 +0200 | [diff] [blame] | 14 | - name: mcp-local-repo-model |
| 15 | source: mcp/mcp-local-repo-model |
| 16 | target: Mirantis/mcp-local-repo-model |
| 17 | branches: "master" |
| 18 | - name: mcp-offline-model |
| 19 | source: mcp/mcp-offline-model |
| 20 | target: Mirantis/mcp-offline-model |
| 21 | branches: "master" |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 22 | template: |
| 23 | discard: |
| 24 | build: |
| 25 | keep_num: 10 |
| 26 | artifact: |
| 27 | keep_num: 10 |
| 28 | type: workflow-scm |
| 29 | concurrent: false |
| 30 | scm: |
| 31 | type: git |
| 32 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 33 | branch: "${_param:jenkins_pipelines_branch}" |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 34 | credentials: "gerrit" |
| 35 | script: git-mirror-2way-pipeline.groovy |
| 36 | github: |
| 37 | url: "https://github.com/{{target}}" |
| 38 | trigger: |
| 39 | github: |
| 40 | pollscm: |
| 41 | spec: ${_param:jenkins_pollscm_spec} |
chnyda | d60ffdc | 2017-12-20 11:31:06 +0100 | [diff] [blame] | 42 | gerrit: |
| 43 | project: |
| 44 | "{{source}}": |
| 45 | branches: |
| 46 | - master |
Jakub Josef | 873ac4d | 2018-01-03 14:36:29 +0100 | [diff] [blame] | 47 | event: |
| 48 | ref: |
| 49 | - updated |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 50 | param: |
| 51 | SOURCE_URL: |
| 52 | type: string |
| 53 | default: "${_param:jenkins_gerrit_url}/{{source}}.git" |
| 54 | TARGET_URL: |
| 55 | type: string |
chnyda | 2daf90a | 2017-12-06 14:48:16 +0100 | [diff] [blame] | 56 | default: "git@github.com:{{target}}.git" |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 57 | CREDENTIALS_ID: |
| 58 | type: string |
| 59 | default: "gerrit" |
| 60 | BRANCHES: |
| 61 | type: string |
| 62 | default: "{{branches}}" |
Jakub Josef | 73305d9 | 2018-01-10 16:00:58 +0100 | [diff] [blame] | 63 | description: "Comma-separated list of branches to mirror" |