blob: f4f7f504107e6a6e25bfbe122f04f0760c22bcb1 [file] [log] [blame]
parameters:
jenkins:
client:
job_template:
git_mirror_upstream_common:
name: git-mirror-upstream-{{name}}
jobs:
- name: pipeline-library
downstream: mcp-ci/pipeline-library.git
upstream: "git@github.com:Mirantis/pipeline-library.git"
branches: master
- name: mk-pipelines
downstream: mk/mk-pipelines.git
upstream: "git@github.com:Mirantis/mk-pipelines.git"
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"
credentials: "gerrit"
script: git-mirror-pipeline.groovy
trigger:
gerrit:
project:
"{{downstream}}":
branches:
- master
message:
build_successful: "Build successful"
build_unstable: "Build unstable"
build_failure: "Build failed"
event:
ref:
- updated
param:
SOURCE_URL:
type: string
default: "${_param:jenkins_gerrit_url}/{{downstream}}"
TARGET_URL:
type: string
default: "{{upstream}}"
CREDENTIALS_ID:
type: string
default: "gerrit"
BRANCHES:
type: string
default: "{{branches}}"