blob: 939eb20050226bcfb9ab6bd202cccc34f0044e89 [file] [log] [blame]
Filip Pytloun217e7842017-03-14 19:58:41 +01001classes:
2 - system.jenkins.client.job.common
3parameters:
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
Filip Pytloun97954242017-03-15 08:24:38 +010014 - name: mk-pipelines
15 downstream: mk/mk-pipelines.git
16 upstream: "git@github.com:Mirantis/mk-pipelines.git"
17 branches: master
Filip Pytloun217e7842017-03-14 19:58:41 +010018 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-pipeline.groovy
31 trigger:
32 gerrit:
33 project:
Filip Pytlounfefa7b62017-03-14 20:04:59 +010034 "{{downstream}}":
Filip Pytloun217e7842017-03-14 19:58:41 +010035 branches:
36 - master
37 message:
38 build_successful: "Build successful"
39 build_unstable: "Build unstable"
40 build_failure: "Build failed"
41 event:
42 ref:
43 - updated
44 param:
45 SOURCE_URL:
46 type: string
47 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
48 TARGET_URL:
49 type: string
50 default: "{{upstream}}"
51 CREDENTIALS_ID:
52 type: string
53 default: "gerrit"
54 BRANCHES:
55 type: string
56 default: "{{branches}}"