blob: 92766ea5ea63c2c01b3f84ad38ad8803e4117b6c [file] [log] [blame]
classes:
- system.jenkins.client.job.common
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
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}}"