[libvirt] [jenkins-ci PATCH 1/2] jobs: Change git URL to github

Pavel Hrdina posted 2 patches 7 years, 7 months ago
[libvirt] [jenkins-ci PATCH 1/2] jobs: Change git URL to github
Posted by Pavel Hrdina 7 years, 7 months ago
We had our own local copy of all projects synchronized by cron on
the host where we have the CI VMs.  This was to safe 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 github instead.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
---
 jobs/autotools.yaml        | 2 +-
 jobs/generic.yaml          | 2 +-
 jobs/go.yaml               | 2 +-
 jobs/perl-modulebuild.yaml | 2 +-
 jobs/python-distutils.yaml | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml
index f526ed2..63a1e81 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: https://github.com/libvirt/{name}.git
           branches:
             - origin/{branch}
           clean:
diff --git a/jobs/generic.yaml b/jobs/generic.yaml
index 3e20962..7919274 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: https://github.com/libvirt/{name}.git
           branches:
             - origin/{branch}
           clean:
diff --git a/jobs/go.yaml b/jobs/go.yaml
index bffe56e..04ba49a 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: https://github.com/libvirt/{name}.git
           branches:
             - origin/{branch}
           clean:
diff --git a/jobs/perl-modulebuild.yaml b/jobs/perl-modulebuild.yaml
index 4a79bab..ef16c6e 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: https://github.com/libvirt/{name}.git
           branches:
             - origin/{branch}
           clean:
diff --git a/jobs/python-distutils.yaml b/jobs/python-distutils.yaml
index c075245..9e64c84 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: https://github.com/libvirt/{name}.git
           branches:
             - origin/{branch}
           clean:
-- 
2.17.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [jenkins-ci PATCH 1/2] jobs: Change git URL to github
Posted by Andrea Bolognani 7 years, 7 months ago
On Thu, 2018-06-21 at 14:21 +0200, Pavel Hrdina wrote:
> We had our own local copy of all projects synchronized by cron on
> the host where we have the CI VMs.  This was to safe 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 github instead.
> 
> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
> ---
>  jobs/autotools.yaml        | 2 +-
>  jobs/generic.yaml          | 2 +-
>  jobs/go.yaml               | 2 +-
>  jobs/perl-modulebuild.yaml | 2 +-
>  jobs/python-distutils.yaml | 2 +-
>  5 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml
> index f526ed2..63a1e81 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: https://github.com/libvirt/{name}.git

This will work for

  libvirt: https://github.com/libvirt/libvirt.git
  libvirt-cim: https://github.com/libvirt/libvirt-cim.git
  libvirt-dbus: https://github.com/libvirt/libvirt-dbus.git
  libvirt-glib: https://github.com/libvirt/libvirt-glib.git
  libvirt-go: https://github.com/libvirt/libvirt-go.git
  libvirt-go-xml: https://github.com/libvirt/libvirt-go-xml.git
  libvirt-perl: https://github.com/libvirt/libvirt-perl.git
  libvirt-python: https://github.com/libvirt/libvirt-python.git
  libvirt-sandbox: https://github.com/libvirt/libvirt-sandbox.git
  libvirt-tck: https://github.com/libvirt/libvirt-tck.git

but not for

  virt-manager: https://github.com/virt-manager/virt-manager.git

because of the different namespace, and also not for

  libosinfo: https://gitlab.com/libosinfo/libosinfo.git
  osinfo-db-tools: https://gitlab.com/libosinfo/osinfo-db-tools.git
  osinfo-db: https://gitlab.com/libosinfo/osinfo-db.git
  virt-viewer: https://pagure.io/virt-viewer.git

because of the completely different hosting platform, so
we're going to need this to be overridable on a per-project
basis.

-- 
Andrea Bolognani / Red Hat / Virtualization

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