blob: 0546d944fbb4d5c14d31bd0b1259e61f0d2fb7fe [file] [log] [blame]
chnydaaa87a052017-12-04 12:03:04 +01001parameters:
2 _param:
3 jenkins_pollscm_spec: "H/60 * * * *"
Sergey Otpuschennikov7fba53f2018-04-03 13:02:06 +04004 job_description_2way: <br>Syncronizes code projects with GitHub.<br>
chnydaaa87a052017-12-04 12:03:04 +01005 jenkins:
6 client:
7 job_template:
8 git-mirror-2way-common:
9 name: git-mirror-2way-{{name}}
10 jobs:
chnydaaa87a052017-12-04 12:03:04 +010011 - name: mcp-common-scripts
12 source: mcp/mcp-common-scripts
13 target: Mirantis/mcp-common-scripts
14 branches: "master"
azvyagintsev8deb07e2018-02-23 12:35:44 +020015 - name: mcp-local-repo-model
16 source: mcp/mcp-local-repo-model
17 target: Mirantis/mcp-local-repo-model
18 branches: "master"
19 - name: mcp-offline-model
20 source: mcp/mcp-offline-model
21 target: Mirantis/mcp-offline-model
22 branches: "master"
chnydaaa87a052017-12-04 12:03:04 +010023 template:
Sergey Otpuschennikov7fba53f2018-04-03 13:02:06 +040024 description: ${_param:job_description_2way}
chnydaaa87a052017-12-04 12:03:04 +010025 discard:
26 build:
27 keep_num: 10
28 artifact:
29 keep_num: 10
30 type: workflow-scm
31 concurrent: false
32 scm:
33 type: git
34 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010035 branch: "${_param:jenkins_pipelines_branch}"
chnydaaa87a052017-12-04 12:03:04 +010036 credentials: "gerrit"
37 script: git-mirror-2way-pipeline.groovy
38 github:
39 url: "https://github.com/{{target}}"
40 trigger:
41 github:
42 pollscm:
43 spec: ${_param:jenkins_pollscm_spec}
chnydad60ffdc2017-12-20 11:31:06 +010044 gerrit:
45 project:
46 "{{source}}":
47 branches:
48 - master
Jakub Josef873ac4d2018-01-03 14:36:29 +010049 event:
50 ref:
51 - updated
chnydaaa87a052017-12-04 12:03:04 +010052 param:
53 SOURCE_URL:
54 type: string
55 default: "${_param:jenkins_gerrit_url}/{{source}}.git"
56 TARGET_URL:
57 type: string
chnyda2daf90a2017-12-06 14:48:16 +010058 default: "git@github.com:{{target}}.git"
chnydaaa87a052017-12-04 12:03:04 +010059 CREDENTIALS_ID:
60 type: string
61 default: "gerrit"
62 BRANCHES:
63 type: string
64 default: "{{branches}}"
Jakub Josef73305d92018-01-10 16:00:58 +010065 description: "Comma-separated list of branches to mirror"