parameters: | |
_param: | |
jenkins_pollscm_spec: "H/60 * * * *" | |
jenkins: | |
client: | |
job_template: | |
git-mirror-2way: | |
name: git-mirror-2way-{{name}} | |
jobs: | |
- name: contrail-pipeline | |
branches: master | |
template: | |
discard: | |
build: | |
keep_num: 10 | |
artifact: | |
keep_num: 10 | |
type: workflow-scm | |
concurrent: false | |
scm: | |
type: git | |
url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" | |
branch: "${_param:jenkins_pipelines_branch}" | |
credentials: "gerrit" | |
script: git-mirror-2way-pipeline.groovy | |
github: | |
url: "https://github.com/Mirantis/{{name}}" | |
trigger: | |
github: | |
pollscm: | |
spec: ${_param:jenkins_pollscm_spec} | |
param: | |
SOURCE_URL: | |
type: string | |
default: "${_param:jenkins_gerrit_url}/contrail/{{name}}.git" | |
TARGET_URL: | |
type: string | |
default: "git@github.com:Mirantis/{{name}}.git" | |
CREDENTIALS_ID: | |
type: string | |
default: "gerrit" | |
BRANCHES: | |
type: string | |
default: "{{branches}}" |