Merge "Add 2way mirroring jobs in git-mirrors"
diff --git a/jenkins/client/job/git-mirrors/2way.yml b/jenkins/client/job/git-mirrors/2way.yml
new file mode 100644
index 0000000..158816a
--- /dev/null
+++ b/jenkins/client/job/git-mirrors/2way.yml
@@ -0,0 +1,49 @@
+parameters:
+ _param:
+ jenkins_pollscm_spec: "H/60 * * * *"
+ jenkins:
+ client:
+ job_template:
+ git-mirror-2way-common:
+ name: git-mirror-2way-{{name}}
+ jobs:
+ - name: salt-formulas-scripts
+ source: salt-formulas/salt-formulas-scripts
+ target: salt-formulas/salt-formulas-scripts
+ branches: "master"
+ - 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"
+ credentials: "gerrit"
+ script: git-mirror-2way-pipeline.groovy
+ github:
+ url: "https://github.com/{{target}}"
+ trigger:
+ github:
+ pollscm:
+ spec: ${_param:jenkins_pollscm_spec}
+ param:
+ SOURCE_URL:
+ type: string
+ default: "${_param:jenkins_gerrit_url}/{{source}}.git"
+ TARGET_URL:
+ type: string
+ default: "https://github.com/{{target}}.git"
+ CREDENTIALS_ID:
+ type: string
+ default: "gerrit"
+ BRANCHES:
+ type: string
+ default: "{{branches}}"