chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | jenkins_pollscm_spec: "H/60 * * * *" |
Sergey Otpuschennikov | 7fba53f | 2018-04-03 13:02:06 +0400 | [diff] [blame] | 4 | job_description_2way: <br>Syncronizes code projects with GitHub.<br> |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 5 | jenkins: |
| 6 | client: |
| 7 | job_template: |
| 8 | git-mirror-2way-common: |
| 9 | name: git-mirror-2way-{{name}} |
| 10 | jobs: |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 11 | - name: mcp-common-scripts |
| 12 | source: mcp/mcp-common-scripts |
| 13 | target: Mirantis/mcp-common-scripts |
Martin Polreich | d44e4c3 | 2018-10-10 12:48:55 +0200 | [diff] [blame] | 14 | branches: "master,release/2018.8.1,release/2018.11.0" |
azvyagintsev | 8deb07e | 2018-02-23 12:35:44 +0200 | [diff] [blame] | 15 | - name: mcp-local-repo-model |
| 16 | source: mcp/mcp-local-repo-model |
| 17 | target: Mirantis/mcp-local-repo-model |
| 18 | branches: "master" |
| 19 | - name: mcp-offline-model |
| 20 | source: mcp/mcp-offline-model |
| 21 | target: Mirantis/mcp-offline-model |
| 22 | branches: "master" |
Richard Felkl | 594a532 | 2018-04-06 10:56:58 +0200 | [diff] [blame] | 23 | - name: mcp-drivetrain-model |
| 24 | source: mcp/mcp-drivetrain-model |
| 25 | target: Mirantis/mcp-drivetrain-model |
| 26 | branches: "master" |
Adam Tengler | 92fcbff | 2018-09-13 13:27:58 +0200 | [diff] [blame] | 27 | - name: model-manager |
| 28 | source: python-apps/model-manager |
| 29 | target: salt-formulas/django-model-manager |
| 30 | branches: "master" |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 31 | template: |
Sergey Otpuschennikov | 7fba53f | 2018-04-03 13:02:06 +0400 | [diff] [blame] | 32 | description: ${_param:job_description_2way} |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 33 | discard: |
| 34 | build: |
| 35 | keep_num: 10 |
| 36 | artifact: |
| 37 | keep_num: 10 |
| 38 | type: workflow-scm |
| 39 | concurrent: false |
| 40 | scm: |
| 41 | type: git |
| 42 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 43 | branch: "${_param:jenkins_pipelines_branch}" |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 44 | credentials: "gerrit" |
| 45 | script: git-mirror-2way-pipeline.groovy |
| 46 | github: |
| 47 | url: "https://github.com/{{target}}" |
| 48 | trigger: |
| 49 | github: |
| 50 | pollscm: |
| 51 | spec: ${_param:jenkins_pollscm_spec} |
chnyda | d60ffdc | 2017-12-20 11:31:06 +0100 | [diff] [blame] | 52 | gerrit: |
| 53 | project: |
| 54 | "{{source}}": |
| 55 | branches: |
| 56 | - master |
Jakub Josef | 873ac4d | 2018-01-03 14:36:29 +0100 | [diff] [blame] | 57 | event: |
| 58 | ref: |
| 59 | - updated |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 60 | param: |
| 61 | SOURCE_URL: |
| 62 | type: string |
| 63 | default: "${_param:jenkins_gerrit_url}/{{source}}.git" |
| 64 | TARGET_URL: |
| 65 | type: string |
chnyda | 2daf90a | 2017-12-06 14:48:16 +0100 | [diff] [blame] | 66 | default: "git@github.com:{{target}}.git" |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 67 | CREDENTIALS_ID: |
| 68 | type: string |
| 69 | default: "gerrit" |
| 70 | BRANCHES: |
| 71 | type: string |
| 72 | default: "{{branches}}" |
Jakub Josef | 73305d9 | 2018-01-10 16:00:58 +0100 | [diff] [blame] | 73 | description: "Comma-separated list of branches to mirror" |