blob: b472fa184f75605dafb171c9c17acdb55b65fd5a [file] [log] [blame]
chnydaaa87a052017-12-04 12:03:04 +01001parameters:
2 _param:
3 jenkins_pollscm_spec: "H/60 * * * *"
4 jenkins:
5 client:
6 job_template:
7 git-mirror-2way-common:
8 name: git-mirror-2way-{{name}}
9 jobs:
chnydaaa87a052017-12-04 12:03:04 +010010 - name: mcp-common-scripts
11 source: mcp/mcp-common-scripts
12 target: Mirantis/mcp-common-scripts
13 branches: "master"
14 template:
15 discard:
16 build:
17 keep_num: 10
18 artifact:
19 keep_num: 10
20 type: workflow-scm
21 concurrent: false
22 scm:
23 type: git
24 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
25 credentials: "gerrit"
26 script: git-mirror-2way-pipeline.groovy
27 github:
28 url: "https://github.com/{{target}}"
29 trigger:
30 github:
31 pollscm:
32 spec: ${_param:jenkins_pollscm_spec}
33 param:
34 SOURCE_URL:
35 type: string
36 default: "${_param:jenkins_gerrit_url}/{{source}}.git"
37 TARGET_URL:
38 type: string
chnyda2daf90a2017-12-06 14:48:16 +010039 default: "git@github.com:{{target}}.git"
chnydaaa87a052017-12-04 12:03:04 +010040 CREDENTIALS_ID:
41 type: string
42 default: "gerrit"
43 BRANCHES:
44 type: string
45 default: "{{branches}}"