Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 1 | parameters: |
Filip Pytloun | a83bbee | 2017-03-15 18:13:59 +0100 | [diff] [blame] | 2 | _param: |
| 3 | jenkins_pollscm_spec: "H/60 * * * *" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 4 | jenkins: |
| 5 | client: |
chnyda | aead881 | 2017-05-19 15:27:30 +0200 | [diff] [blame] | 6 | job_template: |
| 7 | git-mirror-2way: |
| 8 | name: git-mirror-2way-{{name}} |
| 9 | jobs: |
chnyda | 3034f51 | 2017-05-19 15:37:41 +0200 | [diff] [blame] | 10 | - name: contrail-pipeline |
chnyda | 2daf90a | 2017-12-06 14:48:16 +0100 | [diff] [blame] | 11 | branches: master |
chnyda | aead881 | 2017-05-19 15:27:30 +0200 | [diff] [blame] | 12 | template: |
| 13 | discard: |
| 14 | build: |
| 15 | keep_num: 10 |
| 16 | artifact: |
| 17 | keep_num: 10 |
| 18 | type: workflow-scm |
| 19 | concurrent: false |
| 20 | scm: |
| 21 | type: git |
| 22 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame^] | 23 | branch: "${_param:jenkins_pipelines_branch}" |
chnyda | aead881 | 2017-05-19 15:27:30 +0200 | [diff] [blame] | 24 | credentials: "gerrit" |
| 25 | script: git-mirror-2way-pipeline.groovy |
| 26 | github: |
| 27 | url: "https://github.com/Mirantis/{{name}}" |
| 28 | trigger: |
| 29 | github: |
| 30 | pollscm: |
| 31 | spec: ${_param:jenkins_pollscm_spec} |
| 32 | param: |
| 33 | SOURCE_URL: |
| 34 | type: string |
| 35 | default: "${_param:jenkins_gerrit_url}/contrail/{{name}}.git" |
| 36 | TARGET_URL: |
| 37 | type: string |
chnyda | 2daf90a | 2017-12-06 14:48:16 +0100 | [diff] [blame] | 38 | default: "git@github.com:Mirantis/{{name}}.git" |
chnyda | aead881 | 2017-05-19 15:27:30 +0200 | [diff] [blame] | 39 | CREDENTIALS_ID: |
| 40 | type: string |
| 41 | default: "gerrit" |
| 42 | BRANCHES: |
| 43 | type: string |
| 44 | default: "{{branches}}" |