Fix downstream/upstream mirror triggering
Change-Id: If7efdc5961cec439502cf780ab45e00da237330d
diff --git a/jenkins/client/job/git-mirrors/downstream/init.yml b/jenkins/client/job/git-mirrors/downstream/init.yml
index 9333e6a..0ddc0ce 100644
--- a/jenkins/client/job/git-mirrors/downstream/init.yml
+++ b/jenkins/client/job/git-mirrors/downstream/init.yml
@@ -1,6 +1,7 @@
parameters:
_param:
jenkins_git_mirror_downstream_jobs: []
+ jenkins_pollscm_spec: "H/60 * * * *"
jenkins:
client:
job_template:
@@ -21,18 +22,8 @@
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
+ pollscm:
+ spec: ${_param:jenkins_pollscm_spec}
param:
SOURCE_URL:
type: string
diff --git a/jenkins/client/job/git-mirrors/downstream/pipelines.yml b/jenkins/client/job/git-mirrors/downstream/pipelines.yml
index 81b9478..7bf366c 100644
--- a/jenkins/client/job/git-mirrors/downstream/pipelines.yml
+++ b/jenkins/client/job/git-mirrors/downstream/pipelines.yml
@@ -4,10 +4,10 @@
_param:
jenkins_git_mirror_downstream_jobs:
- name: pipeline-library
- downstream: mcp-ci/pipeline-library.git
+ downstream: mcp-ci/pipeline-library
upstream: "https://github.com/Mirantis/pipeline-library"
branches: master
- name: mk-pipelines
- downstream: mk/mk-pipelines.git
+ downstream: mk/mk-pipelines
upstream: "https://github.com/Mirantis/mk-pipelines"
branches: master
diff --git a/jenkins/client/job/git-mirrors/upstream/pipelines.yml b/jenkins/client/job/git-mirrors/upstream/pipelines.yml
index 35f7df1..20f7eb6 100644
--- a/jenkins/client/job/git-mirrors/upstream/pipelines.yml
+++ b/jenkins/client/job/git-mirrors/upstream/pipelines.yml
@@ -4,10 +4,10 @@
_param:
jenkins_git_mirror_upstream_jobs:
- name: pipeline-library
- downstream: mcp-ci/pipeline-library.git
+ downstream: mcp-ci/pipeline-library
upstream: "git@github.com:Mirantis/pipeline-library.git"
branches: master
- name: mk-pipelines
- downstream: mk/mk-pipelines.git
+ downstream: mk/mk-pipelines
upstream: "git@github.com:Mirantis/mk-pipelines.git"
branches: master