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" |
| 14 | template: |
| 15 | discard: |
| 16 | build: |
| 17 | keep_num: 10 |
| 18 | artifact: |
| 19 | keep_num: 10 |
| 20 | type: workflow-scm |
| 21 | concurrent: false |
| 22 | scm: |
| 23 | type: git |
| 24 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 25 | branch: "${_param:jenkins_pipelines_branch}" |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 26 | credentials: "gerrit" |
| 27 | script: git-mirror-2way-pipeline.groovy |
| 28 | github: |
| 29 | url: "https://github.com/{{target}}" |
| 30 | trigger: |
| 31 | github: |
| 32 | pollscm: |
| 33 | spec: ${_param:jenkins_pollscm_spec} |
chnyda | d60ffdc | 2017-12-20 11:31:06 +0100 | [diff] [blame] | 34 | gerrit: |
| 35 | project: |
| 36 | "{{source}}": |
| 37 | branches: |
| 38 | - master |
Jakub Josef | 873ac4d | 2018-01-03 14:36:29 +0100 | [diff] [blame] | 39 | event: |
| 40 | ref: |
| 41 | - updated |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 42 | param: |
| 43 | SOURCE_URL: |
| 44 | type: string |
| 45 | default: "${_param:jenkins_gerrit_url}/{{source}}.git" |
| 46 | TARGET_URL: |
| 47 | type: string |
chnyda | 2daf90a | 2017-12-06 14:48:16 +0100 | [diff] [blame] | 48 | default: "git@github.com:{{target}}.git" |
chnyda | aa87a05 | 2017-12-04 12:03:04 +0100 | [diff] [blame] | 49 | CREDENTIALS_ID: |
| 50 | type: string |
| 51 | default: "gerrit" |
| 52 | BRANCHES: |
| 53 | type: string |
| 54 | default: "{{branches}}" |
Jakub Josef | 73305d9 | 2018-01-10 16:00:58 +0100 | [diff] [blame] | 55 | description: "Comma-separated list of branches to mirror" |