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: |
| 10 | - name: salt-formulas-scripts |
| 11 | source: salt-formulas/salt-formulas-scripts |
| 12 | target: salt-formulas/salt-formulas-scripts |
| 13 | branches: "master" |
| 14 | - name: mcp-common-scripts |
| 15 | source: mcp/mcp-common-scripts |
| 16 | target: Mirantis/mcp-common-scripts |
| 17 | branches: "master" |
| 18 | template: |
| 19 | discard: |
| 20 | build: |
| 21 | keep_num: 10 |
| 22 | artifact: |
| 23 | keep_num: 10 |
| 24 | type: workflow-scm |
| 25 | concurrent: false |
| 26 | scm: |
| 27 | type: git |
| 28 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 29 | credentials: "gerrit" |
| 30 | script: git-mirror-2way-pipeline.groovy |
| 31 | github: |
| 32 | url: "https://github.com/{{target}}" |
| 33 | trigger: |
| 34 | github: |
| 35 | pollscm: |
| 36 | spec: ${_param:jenkins_pollscm_spec} |
| 37 | param: |
| 38 | SOURCE_URL: |
| 39 | type: string |
| 40 | default: "${_param:jenkins_gerrit_url}/{{source}}.git" |
| 41 | TARGET_URL: |
| 42 | type: string |
| 43 | default: "https://github.com/{{target}}.git" |
| 44 | CREDENTIALS_ID: |
| 45 | type: string |
| 46 | default: "gerrit" |
| 47 | BRANCHES: |
| 48 | type: string |
| 49 | default: "{{branches}}" |