blob: 49ae2be867c71c8b89a75df107f8b8c37e83c465 [file] [log] [blame]
Filip Pytloun7af94b32017-03-14 18:38:52 +01001parameters:
Filip Pytlouna83bbee2017-03-15 18:13:59 +01002 _param:
3 jenkins_pollscm_spec: "H/60 * * * *"
Filip Pytloun7af94b32017-03-14 18:38:52 +01004 jenkins:
5 client:
chnydaaead8812017-05-19 15:27:30 +02006 job_template:
7 git-mirror-2way:
8 name: git-mirror-2way-{{name}}
9 jobs:
chnyda3034f512017-05-19 15:37:41 +020010 - name: contrail-pipeline
chnyda2daf90a2017-12-06 14:48:16 +010011 branches: master
chnydaaead8812017-05-19 15:27:30 +020012 template:
13 discard:
14 build:
15 keep_num: 10
16 artifact:
17 keep_num: 10
18 type: workflow-scm
19 concurrent: false
20 scm:
21 type: git
22 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010023 branch: "${_param:jenkins_pipelines_branch}"
chnydaaead8812017-05-19 15:27:30 +020024 credentials: "gerrit"
25 script: git-mirror-2way-pipeline.groovy
26 github:
27 url: "https://github.com/Mirantis/{{name}}"
28 trigger:
29 github:
30 pollscm:
31 spec: ${_param:jenkins_pollscm_spec}
32 param:
33 SOURCE_URL:
34 type: string
35 default: "${_param:jenkins_gerrit_url}/contrail/{{name}}.git"
36 TARGET_URL:
37 type: string
chnyda2daf90a2017-12-06 14:48:16 +010038 default: "git@github.com:Mirantis/{{name}}.git"
chnydaaead8812017-05-19 15:27:30 +020039 CREDENTIALS_ID:
40 type: string
41 default: "gerrit"
42 BRANCHES:
43 type: string
44 default: "{{branches}}"