[jenkins-ci PATCH v2] jobs: Change git URL to fast external mirrors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We had our own local copy of all projects synchronized by cron on
the host where we have the CI VMs.  This was to save the traffic from
libvirt.org repositories and to make the cloning for our Jenkins jobs
faster.

We might move our VMs into a cloud in future we would not be able to
have any local copy so this changes the git URL to use fast external
mirrors.

Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---

v1: <https://www.redhat.com/archives/libvir-list/2018-June/msg01513.html>

 jobs/autotools.yaml           | 2 +-
 jobs/generic.yaml             | 2 +-
 jobs/go.yaml                  | 2 +-
 jobs/perl-modulebuild.yaml    | 2 +-
 jobs/python-distutils.yaml    | 2 +-
 projects/libosinfo.yaml       | 1 +
 projects/libvirt-cim.yaml     | 1 +
 projects/libvirt-dbus.yaml    | 1 +
 projects/libvirt-glib.yaml    | 1 +
 projects/libvirt-go-xml.yaml  | 1 +
 projects/libvirt-go.yaml      | 1 +
 projects/libvirt-perl.yaml    | 1 +
 projects/libvirt-python.yaml  | 1 +
 projects/libvirt-sandbox.yaml | 1 +
 projects/libvirt-tck.yaml     | 1 +
 projects/libvirt.yaml         | 1 +
 projects/osinfo-db-tools.yaml | 1 +
 projects/osinfo-db.yaml       | 1 +
 projects/virt-manager.yaml    | 1 +
 projects/virt-viewer.yaml     | 1 +
 20 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml
index f526ed2..c1d0f27 100644
--- a/jobs/autotools.yaml
+++ b/jobs/autotools.yaml
@@ -21,7 +21,7 @@
           num-to-keep: 1000
     scm:
       - git:
-          url: git://n64.pufty.ci.centos.org/{name}.git
+          url: '{git-url}'
           branches:
             - origin/{branch}
           clean:
diff --git a/jobs/generic.yaml b/jobs/generic.yaml
index 3e20962..6c59c63 100644
--- a/jobs/generic.yaml
+++ b/jobs/generic.yaml
@@ -21,7 +21,7 @@
           num-to-keep: 1000
     scm:
       - git:
-          url: git://n64.pufty.ci.centos.org/{name}.git
+          url: '{git-url}'
           branches:
             - origin/{branch}
           clean:
diff --git a/jobs/go.yaml b/jobs/go.yaml
index bffe56e..10518c4 100644
--- a/jobs/go.yaml
+++ b/jobs/go.yaml
@@ -21,7 +21,7 @@
           num-to-keep: 1000
     scm:
       - git:
-          url: git://n64.pufty.ci.centos.org/{name}.git
+          url: '{git-url}'
           branches:
             - origin/{branch}
           clean:
diff --git a/jobs/perl-modulebuild.yaml b/jobs/perl-modulebuild.yaml
index 4a79bab..934b216 100644
--- a/jobs/perl-modulebuild.yaml
+++ b/jobs/perl-modulebuild.yaml
@@ -21,7 +21,7 @@
           num-to-keep: 1000
     scm:
       - git:
-          url: git://n64.pufty.ci.centos.org/{name}.git
+          url: '{git-url}'
           branches:
             - origin/{branch}
           clean:
diff --git a/jobs/python-distutils.yaml b/jobs/python-distutils.yaml
index c075245..0b20b17 100644
--- a/jobs/python-distutils.yaml
+++ b/jobs/python-distutils.yaml
@@ -21,7 +21,7 @@
           num-to-keep: 1000
     scm:
       - git:
-          url: git://n64.pufty.ci.centos.org/{name}.git
+          url: '{git-url}'
           branches:
             - origin/{branch}
           clean:
diff --git a/projects/libosinfo.yaml b/projects/libosinfo.yaml
index 8e3d105..22c957e 100644
--- a/projects/libosinfo.yaml
+++ b/projects/libosinfo.yaml
@@ -3,6 +3,7 @@
     name: libosinfo
     machines: '{all_machines}'
     title: libosinfo
+    git-url: https://gitlab.com/libosinfo/libosinfo.git
     jobs:
       - autotools-build-job:
           parent_jobs: 'osinfo-db-master-build'
diff --git a/projects/libvirt-cim.yaml b/projects/libvirt-cim.yaml
index dff3976..c6a7a6d 100644
--- a/projects/libvirt-cim.yaml
+++ b/projects/libvirt-cim.yaml
@@ -3,6 +3,7 @@
     name: libvirt-cim
     machines: '{rpm_machines}'
     title: libvirt CIM
+    git-url: https://github.com/libvirt/libvirt-cim.git
     jobs:
       - autotools-build-job:
           parent_jobs: 'libvirt-master-build'
diff --git a/projects/libvirt-dbus.yaml b/projects/libvirt-dbus.yaml
index c460db4..44d1b23 100644
--- a/projects/libvirt-dbus.yaml
+++ b/projects/libvirt-dbus.yaml
@@ -2,6 +2,7 @@
 - project:
     name: libvirt-dbus
     title: Libvirt D-Bus
+    git-url: https://github.com/libvirt/libvirt-dbus.git
     jobs:
       - autotools-build-job:
           parent_jobs: 'libvirt-glib-master-build'
diff --git a/projects/libvirt-glib.yaml b/projects/libvirt-glib.yaml
index 286d25b..f61ca1e 100644
--- a/projects/libvirt-glib.yaml
+++ b/projects/libvirt-glib.yaml
@@ -3,6 +3,7 @@
     name: libvirt-glib
     machines: '{all_machines}'
     title: Libvirt GLib
+    git-url: https://github.com/libvirt/libvirt-glib.git
     jobs:
       - autotools-build-job:
           parent_jobs: 'libvirt-master-build'
diff --git a/projects/libvirt-go-xml.yaml b/projects/libvirt-go-xml.yaml
index 8d9c16d..6eb7ef0 100644
--- a/projects/libvirt-go-xml.yaml
+++ b/projects/libvirt-go-xml.yaml
@@ -3,6 +3,7 @@
     name: libvirt-go-xml
     machines: '{all_machines}'
     title: Libvirt Go XML
+    git-url: https://github.com/libvirt/libvirt-go-xml.git
     jobs:
       - go-build-job:
           parent_jobs: 'libvirt-master-build'
diff --git a/projects/libvirt-go.yaml b/projects/libvirt-go.yaml
index f2eb87e..0495374 100644
--- a/projects/libvirt-go.yaml
+++ b/projects/libvirt-go.yaml
@@ -3,6 +3,7 @@
     name: libvirt-go
     machines: '{all_machines}'
     title: Libvirt Go
+    git-url: https://github.com/libvirt/libvirt-go.git
     jobs:
       - go-build-job:
           parent_jobs: 'libvirt-master-build'
diff --git a/projects/libvirt-perl.yaml b/projects/libvirt-perl.yaml
index 28288e8..956ba93 100644
--- a/projects/libvirt-perl.yaml
+++ b/projects/libvirt-perl.yaml
@@ -3,6 +3,7 @@
     name: libvirt-perl
     machines: '{all_machines}'
     title: Libvirt Perl
+    git-url: https://github.com/libvirt/libvirt-perl.git
     jobs:
       - perl-modulebuild-build-job:
           parent_jobs: 'libvirt-master-build'
diff --git a/projects/libvirt-python.yaml b/projects/libvirt-python.yaml
index 1e742da..fdc55e0 100644
--- a/projects/libvirt-python.yaml
+++ b/projects/libvirt-python.yaml
@@ -3,6 +3,7 @@
     name: libvirt-python
     machines: '{all_machines}'
     title: Libvirt Python
+    git-url: https://github.com/libvirt/libvirt-python.git
     jobs:
       - python-distutils-build-job:
           parent_jobs: 'libvirt-master-build'
diff --git a/projects/libvirt-sandbox.yaml b/projects/libvirt-sandbox.yaml
index bb8bda6..518080a 100644
--- a/projects/libvirt-sandbox.yaml
+++ b/projects/libvirt-sandbox.yaml
@@ -7,6 +7,7 @@
       - libvirt-fedora-28
       - libvirt-fedora-rawhide
     title: Libvirt Sandbox
+    git-url: https://github.com/libvirt/libvirt-sandbox.git
     jobs:
       - autotools-build-job:
           parent_jobs: 'libvirt-glib-master-build'
diff --git a/projects/libvirt-tck.yaml b/projects/libvirt-tck.yaml
index 065678d..c406fda 100644
--- a/projects/libvirt-tck.yaml
+++ b/projects/libvirt-tck.yaml
@@ -10,6 +10,7 @@
       - libvirt-freebsd-10
       - libvirt-freebsd-11
     title: Libvirt TCK
+    git-url: https://github.com/libvirt/libvirt-tck.git
     jobs:
       - perl-modulebuild-build-job:
           parent_jobs: 'libvirt-perl-master-build'
diff --git a/projects/libvirt.yaml b/projects/libvirt.yaml
index 7a8392e..c64ac5b 100644
--- a/projects/libvirt.yaml
+++ b/projects/libvirt.yaml
@@ -4,6 +4,7 @@
     machines: '{all_machines}'
     title: Libvirt
     archive_format: xz
+    git-url: https://github.com/libvirt/libvirt.git
     jobs:
       - autotools-build-job:
           parent_jobs:
diff --git a/projects/osinfo-db-tools.yaml b/projects/osinfo-db-tools.yaml
index cab85af..d4cef11 100644
--- a/projects/osinfo-db-tools.yaml
+++ b/projects/osinfo-db-tools.yaml
@@ -3,6 +3,7 @@
     name: osinfo-db-tools
     machines: '{all_machines}'
     title: osinfo database tools
+    git-url: https://gitlab.com/libosinfo/osinfo-db-tools.git
     jobs:
       - autotools-build-job:
           parent_jobs:
diff --git a/projects/osinfo-db.yaml b/projects/osinfo-db.yaml
index a197bbd..141a373 100644
--- a/projects/osinfo-db.yaml
+++ b/projects/osinfo-db.yaml
@@ -4,6 +4,7 @@
     machines: '{all_machines}'
     title: osinfo database
     archive_format: xz
+    git-url: https://gitlab.com/libosinfo/osinfo-db.git
     jobs:
       - generic-build-job:
           parent_jobs: 'osinfo-db-tools-master-build'
diff --git a/projects/virt-manager.yaml b/projects/virt-manager.yaml
index 74f7fc1..84a95a6 100644
--- a/projects/virt-manager.yaml
+++ b/projects/virt-manager.yaml
@@ -9,6 +9,7 @@
       - libvirt-freebsd-10
       - libvirt-freebsd-11
     title: Virtual Machine Manager
+    git-url: https://github.com/virt-manager/virt-manager.git
     jobs:
       - python-distutils-build-job:
           parent_jobs:
diff --git a/projects/virt-viewer.yaml b/projects/virt-viewer.yaml
index 633ac9a..12335f3 100644
--- a/projects/virt-viewer.yaml
+++ b/projects/virt-viewer.yaml
@@ -3,6 +3,7 @@
     name: virt-viewer
     machines: '{all_machines}'
     title: Virt Viewer
+    git-url: https://pagure.io/virt-viewer.git
     jobs:
       - autotools-build-job:
           parent_jobs: 'libvirt-glib-master-build'
-- 
2.17.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux