blob: 3b1a62fdc4b6e6544ce524efdd4cce5c7b89d2e9 [file] [log] [blame]
parameters:
_param:
jenkins_pollscm_spec: "H/60 * * * *"
jenkins:
client:
job_template:
git-mirror-2way-common:
name: git-mirror-2way-{{name}}
jobs:
- name: mcp-common-scripts
source: mcp/mcp-common-scripts
target: Mirantis/mcp-common-scripts
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/{{target}}"
trigger:
github:
pollscm:
spec: ${_param:jenkins_pollscm_spec}
gerrit:
project:
"{{source}}":
branches:
- master
event:
ref:
- updated
param:
SOURCE_URL:
type: string
default: "${_param:jenkins_gerrit_url}/{{source}}.git"
TARGET_URL:
type: string
default: "git@github.com:{{target}}.git"
CREDENTIALS_ID:
type: string
default: "gerrit"
BRANCHES:
type: string
default: "{{branches}}"
description: "Comma-separated list of branches to mirror"