blob: f4f7f504107e6a6e25bfbe122f04f0760c22bcb1 [file] [log] [blame]
Filip Pytloun217e7842017-03-14 19:58:41 +01001parameters:
2 jenkins:
3 client:
4 job_template:
5 git_mirror_upstream_common:
6 name: git-mirror-upstream-{{name}}
7 jobs:
8 - name: pipeline-library
9 downstream: mcp-ci/pipeline-library.git
10 upstream: "git@github.com:Mirantis/pipeline-library.git"
11 branches: master
Filip Pytloun97954242017-03-15 08:24:38 +010012 - name: mk-pipelines
13 downstream: mk/mk-pipelines.git
14 upstream: "git@github.com:Mirantis/mk-pipelines.git"
15 branches: master
Filip Pytloun217e7842017-03-14 19:58:41 +010016 template:
17 discard:
18 build:
19 keep_num: 10
20 artifact:
21 keep_num: 10
22 type: workflow-scm
23 concurrent: false
24 scm:
25 type: git
26 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
27 credentials: "gerrit"
28 script: git-mirror-pipeline.groovy
29 trigger:
30 gerrit:
31 project:
Filip Pytlounfefa7b62017-03-14 20:04:59 +010032 "{{downstream}}":
Filip Pytloun217e7842017-03-14 19:58:41 +010033 branches:
34 - master
35 message:
36 build_successful: "Build successful"
37 build_unstable: "Build unstable"
38 build_failure: "Build failed"
39 event:
40 ref:
41 - updated
42 param:
43 SOURCE_URL:
44 type: string
45 default: "${_param:jenkins_gerrit_url}/{{downstream}}"
46 TARGET_URL:
47 type: string
48 default: "{{upstream}}"
49 CREDENTIALS_ID:
50 type: string
51 default: "gerrit"
52 BRANCHES:
53 type: string
54 default: "{{branches}}"