blob: 38d64c37654476125f5d6eef506f4c0f148d2361 [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"
23 credentials: "gerrit"
24 script: git-mirror-2way-pipeline.groovy
25 github:
26 url: "https://github.com/Mirantis/{{name}}"
27 trigger:
28 github:
29 pollscm:
30 spec: ${_param:jenkins_pollscm_spec}
31 param:
32 SOURCE_URL:
33 type: string
34 default: "${_param:jenkins_gerrit_url}/contrail/{{name}}.git"
35 TARGET_URL:
36 type: string
chnyda2daf90a2017-12-06 14:48:16 +010037 default: "git@github.com:Mirantis/{{name}}.git"
chnydaaead8812017-05-19 15:27:30 +020038 CREDENTIALS_ID:
39 type: string
40 default: "gerrit"
41 BRANCHES:
42 type: string
43 default: "{{branches}}"