If we use github as the remote repository we can take advantage of
github webhooks in order to trigger our Jobs instead of blind polling.
CentOS CI provides that option [1].
[1] <
https://ci.centos.org/github-webhook/>
Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
jobs/autotools.yaml | 3 +--
jobs/generic.yaml | 3 +--
jobs/go.yaml | 3 +--
jobs/perl-modulebuild.yaml | 3 +--
jobs/python-distutils.yaml | 3 +--
5 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml
index 63a1e81..8a97a7a 100644
--- a/jobs/autotools.yaml
+++ b/jobs/autotools.yaml
@@ -31,8 +31,7 @@
triggers:
- reverse:
jobs: '{obj:parent_jobs}'
- - pollscm:
- cron: "H/20 * * * *"
+ - github
axes:
- axis:
name: systems
diff --git a/jobs/generic.yaml b/jobs/generic.yaml
index 7919274..770b781 100644
--- a/jobs/generic.yaml
+++ b/jobs/generic.yaml
@@ -31,8 +31,7 @@
triggers:
- reverse:
jobs: '{obj:parent_jobs}'
- - pollscm:
- cron: "H/20 * * * *"
+ - github
axes:
- axis:
name: systems
diff --git a/jobs/go.yaml b/jobs/go.yaml
index 04ba49a..7616185 100644
--- a/jobs/go.yaml
+++ b/jobs/go.yaml
@@ -31,8 +31,7 @@
triggers:
- reverse:
jobs: '{obj:parent_jobs}'
- - pollscm:
- cron: "H/20 * * * *"
+ - github
axes:
- axis:
name: systems
diff --git a/jobs/perl-modulebuild.yaml b/jobs/perl-modulebuild.yaml
index ef16c6e..329bfcd 100644
--- a/jobs/perl-modulebuild.yaml
+++ b/jobs/perl-modulebuild.yaml
@@ -31,8 +31,7 @@
triggers:
- reverse:
jobs: '{obj:parent_jobs}'
- - pollscm:
- cron: "H/20 * * * *"
+ - github
axes:
- axis:
name: systems
diff --git a/jobs/python-distutils.yaml b/jobs/python-distutils.yaml
index 9e64c84..dca016e 100644
--- a/jobs/python-distutils.yaml
+++ b/jobs/python-distutils.yaml
@@ -31,8 +31,7 @@
triggers:
- reverse:
jobs: '{obj:parent_jobs}'
- - pollscm:
- cron: "H/20 * * * *"
+ - github
axes:
- axis:
name: systems
--
2.17.1