blob: 5a6257c362f3635d33a5ebe00cb3b937058f0c42 [file] [log] [blame]
parameters:
_param:
jenkins_git_mirror_downstream_jobs: []
jenkins:
client:
job_template:
git_mirror_downstream_common:
name: git-mirror-downstream-{{name}}
jobs: ${_param:jenkins_git_mirror_downstream_jobs}
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: ${_param:jenkins_gerrit_credentials}
script: git-mirror-pipeline.groovy
param:
SOURCE_URL:
type: string
default: "{{upstream}}"
TARGET_URL:
type: string
default: "${_param:jenkins_gerrit_url}/{{downstream}}"
CREDENTIALS_ID:
type: string
default: "gerrit"
BRANCHES:
type: string
default: "{{branches}}"
description: "Comma-separated list of branches to mirror"