Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 1 | parameters: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 2 | _param: |
| 3 | jenkins_git_mirror_upstream_jobs: [] |
Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 4 | jenkins: |
| 5 | client: |
| 6 | job_template: |
| 7 | git_mirror_upstream_common: |
| 8 | name: git-mirror-upstream-{{name}} |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 9 | jobs: ${_param:jenkins_git_mirror_upstream_jobs} |
Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 10 | template: |
| 11 | discard: |
| 12 | build: |
| 13 | keep_num: 10 |
| 14 | artifact: |
| 15 | keep_num: 10 |
| 16 | type: workflow-scm |
| 17 | concurrent: false |
| 18 | scm: |
| 19 | type: git |
| 20 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 21 | credentials: "gerrit" |
| 22 | script: git-mirror-pipeline.groovy |
| 23 | trigger: |
| 24 | gerrit: |
| 25 | project: |
Filip Pytloun | fefa7b6 | 2017-03-14 20:04:59 +0100 | [diff] [blame] | 26 | "{{downstream}}": |
Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 27 | branches: |
chnyda | 5adc453 | 2017-09-20 15:08:43 +0200 | [diff] [blame] | 28 | - compare_type: "REG_EXP" |
| 29 | name: "(.*?)" |
Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame] | 30 | message: |
| 31 | build_successful: "Build successful" |
| 32 | build_unstable: "Build unstable" |
| 33 | build_failure: "Build failed" |
| 34 | event: |
| 35 | ref: |
| 36 | - updated |
| 37 | param: |
| 38 | SOURCE_URL: |
| 39 | type: string |
| 40 | default: "${_param:jenkins_gerrit_url}/{{downstream}}" |
| 41 | TARGET_URL: |
| 42 | type: string |
| 43 | default: "{{upstream}}" |
| 44 | CREDENTIALS_ID: |
| 45 | type: string |
| 46 | default: "gerrit" |
| 47 | BRANCHES: |
| 48 | type: string |
| 49 | default: "{{branches}}" |