Filip Pytloun | 217e784 | 2017-03-14 19:58:41 +0100 | [diff] [blame^] | 1 | classes: |
| 2 | - system.jenkins.client.job.common |
| 3 | parameters: |
| 4 | jenkins: |
| 5 | client: |
| 6 | job_template: |
| 7 | git_mirror_upstream_common: |
| 8 | name: git-mirror-upstream-{{name}} |
| 9 | jobs: |
| 10 | - name: pipeline-library |
| 11 | downstream: mcp-ci/pipeline-library.git |
| 12 | upstream: "git@github.com:Mirantis/pipeline-library.git" |
| 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" |
| 25 | credentials: "gerrit" |
| 26 | script: git-mirror-pipeline.groovy |
| 27 | trigger: |
| 28 | gerrit: |
| 29 | project: |
| 30 | {{downstream}}: |
| 31 | branches: |
| 32 | - master |
| 33 | message: |
| 34 | build_successful: "Build successful" |
| 35 | build_unstable: "Build unstable" |
| 36 | build_failure: "Build failed" |
| 37 | event: |
| 38 | ref: |
| 39 | - updated |
| 40 | param: |
| 41 | SOURCE_URL: |
| 42 | type: string |
| 43 | default: "${_param:jenkins_gerrit_url}/{{downstream}}" |
| 44 | TARGET_URL: |
| 45 | type: string |
| 46 | default: "{{upstream}}" |
| 47 | CREDENTIALS_ID: |
| 48 | type: string |
| 49 | default: "gerrit" |
| 50 | BRANCHES: |
| 51 | type: string |
| 52 | default: "{{branches}}" |