fixeria has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/28349 )

Change subject: update git URLs (git -> https; gitea/gerrit)
......................................................................

update git URLs (git -> https; gitea/gerrit)

Unencrypted git:// protocol offers no integrity or authentication,
making it subject to tampering.  Use https:// instead.

https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git
https://blog.readthedocs.com/github-git-protocol-deprecation/

Change-Id: Ia44e4127ff87a3d4d747225d3258188a0a891f1b
---
M README.adoc
M ansible/roles/gsm-tester/tasks/main.yml
M ansible/roles/osmocom-workstation/tasks/git-repos.yml
M contrib/jenkins.sh
M coverity/prepare_source_Osmocom.sh
M jobs/coverity.yml
M jobs/master-builds.yml
M jobs/octsim_osmo-ccid-firmware.yml
M jobs/osmo-gsm-manuals-trigger.yml
M jobs/osmo-gsm-tester-builder.yml
M jobs/osmo-gsm-tester-runner.yml
M jobs/osmocom-build-tags-against-master.yml
M jobs/osmocom-depcheck.yml
M jobs/osmocom-list-commits.yml
M jobs/osmocom-obs.yml
M jobs/osmocom-release-tarballs.yml
M jobs/registry-rebuild-upload-fpga-build.yml
M jobs/registry-rebuild-upload-titan.yml
M jobs/registry-triggers.yml
M jobs/repo-install-test.yml
M jobs/ttcn3-testsuites-kernel-git.yml
M jobs/ttcn3-testsuites.yml
M jobs/update-osmo-ci-on-slaves.yml
M qemu-kvm/ggsn-kernel-gtp/postinst.sh
M scripts/osmo-build.sh
M scripts/osmo-depcheck/config.py
M scripts/osmo-depcheck/dependencies.py
M scripts/osmo-deps.sh
M scripts/osmo-layer1-headers.sh
29 files changed, 41 insertions(+), 41 deletions(-)

Approvals:
  Jenkins Builder: Verified
  osmith: Looks good to me, approved



diff --git a/README.adoc b/README.adoc
index bd4ef2a..23d723b 100644
--- a/README.adoc
+++ b/README.adoc
@@ -24,7 +24,7 @@
 $OSMO_BRANCH_DOCKER_PLAYGROUND). The fetch and reset gets skipped if
 _docker_playground is a symlink. For development, set it up as follows:

- $ git clone https://git.osmocom.org/docker-playground
- $ git clone https://git.osmocom.org/osmo-ci
+ $ git clone https://gitea.osmocom.org/osmocom/docker-playground
+ $ git clone https://gitea.osmocom.org/osmocom/osmo-ci
  $ cd osmo-ci
  $ ln -s ../docker-playground _docker_playground
diff --git a/ansible/roles/gsm-tester/tasks/main.yml 
b/ansible/roles/gsm-tester/tasks/main.yml
index cf531cc..a1fb6cd 100644
--- a/ansible/roles/gsm-tester/tasks/main.yml
+++ b/ansible/roles/gsm-tester/tasks/main.yml
@@ -132,7 +132,7 @@

 - name: setup ofono repository
   git:
-    repo: 'https://git.sysmocom.de/sysmocom/ofono'
+    repo: 'https://gitea.sysmocom.de/sysmocom/ofono'
     dest: /root/ofono
     version: osmo-gsm-tester
     clone: yes
@@ -354,7 +354,7 @@

 - name: setup osmo-gsm-tester repository
   git:
-    repo: 'git://git.osmocom.org/osmo-gsm-tester'
+    repo: 'https://gitea.osmocom.org/cellular-infrastructure/osmo-gsm-tester'
     dest: /root/osmo-gsm-tester
     version: master
     clone: yes
diff --git a/ansible/roles/osmocom-workstation/tasks/git-repos.yml 
b/ansible/roles/osmocom-workstation/tasks/git-repos.yml
index c5cfd55..719b6eb 100644
--- a/ansible/roles/osmocom-workstation/tasks/git-repos.yml
+++ b/ansible/roles/osmocom-workstation/tasks/git-repos.yml
@@ -4,7 +4,7 @@
   become: yes
   become_user: "{{ osmocom_user }}"
   git:
-     repo: git://git.osmocom.org/{{ item }}.git
+     repo: https://git.osmocom.org/{{ item }}
      dest: "{{ git_destination }}/{{ item }}"
      accept_hostkey: yes
      force: no
@@ -106,7 +106,7 @@
      chdir: "{{ git_destination }}/osmo-ttcn3-hacks"

 - name: install sysmocom git repos
-  git: repo=https://git.sysmocom.de/{{ item }}.git
+  git: repo=https://gitea.sysmocom.de/{{ item }}.git
        dest={{ git_destination }}/{{ item }}
        accept_hostkey=yes
        force=yes
@@ -119,7 +119,7 @@


 - name: install github git repos
-  git: repo=git://github.com/{{ item }}.git
+  git: repo=https://github.com/{{ item }}.git
        dest={{ git_destination }}/{{ item }}
        accept_hostkey=yes
        force=yes
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index e1564a7..a15ea05 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -4,7 +4,7 @@
 # Clone repository to ~/, or update existing
 # $1: name of osmocom project
 clone_repo() {
-       cd ~/"$1" || (cd ~/ && git clone git://git.osmocom.org/"$1" && cd 
~/"$1")
+       cd ~/"$1" || (cd ~/ && git clone https://git.osmocom.org/"$1"; && cd 
~/"$1")
        git rev-parse HEAD
        git status

diff --git a/coverity/prepare_source_Osmocom.sh 
b/coverity/prepare_source_Osmocom.sh
index e97c885..122fc1c 100755
--- a/coverity/prepare_source_Osmocom.sh
+++ b/coverity/prepare_source_Osmocom.sh
@@ -57,7 +57,7 @@
                        git -C "$proj" clean -ffxd
                fi
        else
-               git clone git://git.osmocom.org/$proj
+               git clone https://git.osmocom.org/$proj
        fi
 done

@@ -71,5 +71,5 @@
 done

 if ! [ -d layer1-api ]; then
-       git clone https://git.sysmocom.de/sysmo-bts/layer1-api
+       git clone https://gitea.sysmocom.de/sysmo-bts/layer1-api
 fi
diff --git a/jobs/coverity.yml b/jobs/coverity.yml
index cb39ea6..74803c7 100644
--- a/jobs/coverity.yml
+++ b/jobs/coverity.yml
@@ -31,7 +31,7 @@
           default: 'origin/master'
     scm:
       - git:
-          url: git://git.osmocom.org/osmo-ci
+          url: https://gerrit.osmocom.org/osmo-ci
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
           branches:
diff --git a/jobs/master-builds.yml b/jobs/master-builds.yml
index fd31581..abeb4d6 100644
--- a/jobs/master-builds.yml
+++ b/jobs/master-builds.yml
@@ -46,7 +46,7 @@
     wrappers: []
     trigger:
     email: [email protected] [email protected]
-    git_base_url: git://git.osmocom.org
+    git_base_url: https://git.osmocom.org

     # in alphabetical order
     repos:
@@ -404,7 +404,7 @@
           concurrent: false
           cmd: cd ./tests; ./run-tests
           slave_axis: !!python/tuple [simtester]
-          git_base_url: https://git.sysmocom.de/sysmocom
+          git_base_url: https://gitea.sysmocom.de/sysmocom

       - dahdi-tools

diff --git a/jobs/octsim_osmo-ccid-firmware.yml 
b/jobs/octsim_osmo-ccid-firmware.yml
index 311be33..17e3cef 100644
--- a/jobs/octsim_osmo-ccid-firmware.yml
+++ b/jobs/octsim_osmo-ccid-firmware.yml
@@ -22,7 +22,7 @@
     project-type: matrix
     scm:
       - git:
-          url: git://git.osmocom.org/osmo-ccid-firmware
+          url: https://gerrit.osmocom.org/osmo-ccid-firmware
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
           skip-tag: true
diff --git a/jobs/osmo-gsm-manuals-trigger.yml 
b/jobs/osmo-gsm-manuals-trigger.yml
index d83b9fa..bbb883f 100644
--- a/jobs/osmo-gsm-manuals-trigger.yml
+++ b/jobs/osmo-gsm-manuals-trigger.yml
@@ -18,7 +18,7 @@
     node: osmocom-master-debian9
     scm:
       - git:
-          url: git://git.osmocom.org/osmo-gsm-manuals
+          url: https://gerrit.osmocom.org/osmo-gsm-manuals
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
           skip-tag: true
diff --git a/jobs/osmo-gsm-tester-builder.yml b/jobs/osmo-gsm-tester-builder.yml
index 1855d02..cd50cb8 100644
--- a/jobs/osmo-gsm-tester-builder.yml
+++ b/jobs/osmo-gsm-tester-builder.yml
@@ -116,7 +116,7 @@
     name: osmo-gsm-tester-repo
     scm:
       - git:
-          url: git://git.osmocom.org/osmo-gsm-tester
+          url: https://gerrit.osmocom.org/osmo-gsm-tester
           branches:
             - ${OSMO_GSM_TESTER_BRANCH}
           wipe-workspace: false
diff --git a/jobs/osmo-gsm-tester-runner.yml b/jobs/osmo-gsm-tester-runner.yml
index 473f046..73a49db 100644
--- a/jobs/osmo-gsm-tester-runner.yml
+++ b/jobs/osmo-gsm-tester-runner.yml
@@ -32,7 +32,7 @@
     name: osmo-gsm-tester-repo
     scm:
       - git:
-          url: git://git.osmocom.org/osmo-gsm-tester
+          url: 
https://gitea.osmocom.org/cellular-infrastructure/osmo-gsm-tester
           branches:
             - ${OSMO_GSM_TESTER_BRANCH}
           wipe-workspace: false
diff --git a/jobs/osmocom-build-tags-against-master.yml 
b/jobs/osmocom-build-tags-against-master.yml
index 1520ec2..22ac9ae 100644
--- a/jobs/osmocom-build-tags-against-master.yml
+++ b/jobs/osmocom-build-tags-against-master.yml
@@ -25,7 +25,7 @@
       - git:
           branches:
             - '$BRANCH'
-          url: git://git.osmocom.org/osmo-ci
+          url: https://git.osmocom.org/osmo-ci
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
     triggers:
diff --git a/jobs/osmocom-depcheck.yml b/jobs/osmocom-depcheck.yml
index 1e5533d..1eadd0e 100644
--- a/jobs/osmocom-depcheck.yml
+++ b/jobs/osmocom-depcheck.yml
@@ -26,7 +26,7 @@
           name: GIT_URL_PREFIX
           description: |
                 Where to clone the sources from
-          default: 'git://git.osmocom.org/'
+          default: 'https://git.osmocom.org/'
       - bool:
           name: BUILD
           description: |
@@ -65,7 +65,7 @@
       - git:
           branches:
             - '$BRANCH'
-          url: git://git.osmocom.org/osmo-ci
+          url: https://git.osmocom.org/osmo-ci
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'

diff --git a/jobs/osmocom-list-commits.yml b/jobs/osmocom-list-commits.yml
index f2651f4..c9995c6 100644
--- a/jobs/osmocom-list-commits.yml
+++ b/jobs/osmocom-list-commits.yml
@@ -26,7 +26,7 @@
       - git:
           branches:
             - '$BRANCH'
-          url: git://git.osmocom.org/osmo-ci
+          url: https://git.osmocom.org/osmo-ci
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
     triggers:
diff --git a/jobs/osmocom-obs.yml b/jobs/osmocom-obs.yml
index ddb71f1..cb8cef1 100644
--- a/jobs/osmocom-obs.yml
+++ b/jobs/osmocom-obs.yml
@@ -45,7 +45,7 @@
       - git:
           branches:
             - '$BRANCH'
-          url: git://git.osmocom.org/osmo-ci
+          url: https://git.osmocom.org/osmo-ci
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
     triggers:
diff --git a/jobs/osmocom-release-tarballs.yml 
b/jobs/osmocom-release-tarballs.yml
index 0bc1fff..3d11bd3 100644
--- a/jobs/osmocom-release-tarballs.yml
+++ b/jobs/osmocom-release-tarballs.yml
@@ -26,7 +26,7 @@
       - git:
           branches:
             - '$BRANCH_DOCKER_PLAYGROUND'
-          url: git://git.osmocom.org/docker-playground
+          url: https://gitea.osmocom.org/osmocom/docker-playground
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
           # Don't wipe workspace to keep generated release tarballs
diff --git a/jobs/registry-rebuild-upload-fpga-build.yml 
b/jobs/registry-rebuild-upload-fpga-build.yml
index 9338bce..dceb2c5 100644
--- a/jobs/registry-rebuild-upload-fpga-build.yml
+++ b/jobs/registry-rebuild-upload-fpga-build.yml
@@ -11,7 +11,7 @@
     node: osmocom-master-debian9
     scm:
       - git:
-          url: git://git.osmocom.org/docker-playground
+          url: https://gerrit.osmocom.org/docker-playground
           skip-tag: true
           branches:
             - 'origin/master'
diff --git a/jobs/registry-rebuild-upload-titan.yml 
b/jobs/registry-rebuild-upload-titan.yml
index 2042cdf..a21a088 100644
--- a/jobs/registry-rebuild-upload-titan.yml
+++ b/jobs/registry-rebuild-upload-titan.yml
@@ -8,7 +8,7 @@
     name: osmocom-docker-playground
     scm:
         - git:
-            url: git://git.osmocom.org/docker-playground
+            url: https://gerrit.osmocom.org/docker-playground
             skip-tag: true
             branches:
                 - 'origin/master'
diff --git a/jobs/registry-triggers.yml b/jobs/registry-triggers.yml
index 0763496..dcdde85 100644
--- a/jobs/registry-triggers.yml
+++ b/jobs/registry-triggers.yml
@@ -15,7 +15,7 @@
     node: osmocom-master-debian9
     scm:
       - git:
-         url: git://git.osmocom.org/{repos}
+         url: https://gerrit.osmocom.org/{repos}
          branches:
            - 'origin/master'
     trigger:
diff --git a/jobs/repo-install-test.yml b/jobs/repo-install-test.yml
index 5648160..5343f33 100644
--- a/jobs/repo-install-test.yml
+++ b/jobs/repo-install-test.yml
@@ -56,7 +56,7 @@
       - git:
           branches:
             - '$BRANCH_CI'
-          url: git://git.osmocom.org/osmo-ci
+          url: https://gerrit.osmocom.org/osmo-ci
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
     triggers:
diff --git a/jobs/ttcn3-testsuites-kernel-git.yml 
b/jobs/ttcn3-testsuites-kernel-git.yml
index 37f9170..9d644ec 100644
--- a/jobs/ttcn3-testsuites-kernel-git.yml
+++ b/jobs/ttcn3-testsuites-kernel-git.yml
@@ -96,7 +96,7 @@
       - git:
           branches:
             - '$BRANCH'
-          url: git://git.osmocom.org/docker-playground
+          url: https://gerrit.osmocom.org/docker-playground
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
           wipe-workspace: "{obj:wipe_workspace}"
diff --git a/jobs/ttcn3-testsuites.yml b/jobs/ttcn3-testsuites.yml
index 2016dd2..ba5b298 100644
--- a/jobs/ttcn3-testsuites.yml
+++ b/jobs/ttcn3-testsuites.yml
@@ -470,7 +470,7 @@
       - git:
           branches:
             - '$BRANCH'
-          url: git://git.osmocom.org/docker-playground
+          url: https://gerrit.osmocom.org/docker-playground
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
           wipe-workspace: "{obj:wipe_workspace}"
diff --git a/jobs/update-osmo-ci-on-slaves.yml 
b/jobs/update-osmo-ci-on-slaves.yml
index df6bd99..36ed922 100644
--- a/jobs/update-osmo-ci-on-slaves.yml
+++ b/jobs/update-osmo-ci-on-slaves.yml
@@ -24,7 +24,7 @@
           num-to-keep: 120
     scm:
       - git:
-          url: git://git.osmocom.org/osmo-ci
+          url: https://gerrit.osmocom.org/osmo-ci
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
           skip-tag: true
@@ -54,7 +54,7 @@
     node: osmocom-master-debian9
     scm:
       - git:
-          url: git://git.osmocom.org/docker-playground
+          url: https://gerrit.osmocom.org/docker-playground
           git-config-name: 'Jenkins Builder'
           git-config-email: '[email protected]'
           skip-tag: true
diff --git a/qemu-kvm/ggsn-kernel-gtp/postinst.sh 
b/qemu-kvm/ggsn-kernel-gtp/postinst.sh
index 4cbe64c..cbee562 100755
--- a/qemu-kvm/ggsn-kernel-gtp/postinst.sh
+++ b/qemu-kvm/ggsn-kernel-gtp/postinst.sh
@@ -65,10 +65,10 @@

 # check out sources we need from their respective repositories
 cd /usr/local/src
-git clone git://git.netfilter.org/libmnl
+git clone https://git.netfilter.org/libmnl
 (cd libmnl && autoreconf -fi && ./configure && make && make install)
-git clone git://git.osmocom.org/libgtpnl
+git clone https://gerrit.osmocom.org/libgtpnl
 (cd libgtpnl && autoreconf -fi && ./configure && make && make install)
-git clone git://git.osmocom.org/osmo-ggsn
+git clone https://gerrit.osmocom.org/osmo-ggsn
 (cd osmo-ggsn && autoreconf -fi && ./configure --enable-gtp-linux && make && 
make install)
 ldconfig
diff --git a/scripts/osmo-build.sh b/scripts/osmo-build.sh
index 39cbae6..8ca8e47 100644
--- a/scripts/osmo-build.sh
+++ b/scripts/osmo-build.sh
@@ -172,7 +172,7 @@
 branch_and_rev_of_remote_repo() {
        if [ -z "${2+x}" ]; then branch="master"; else branch="$2"; fi
        branch="$( echo "$branch" | tr '/' '_')"
-       rev="$(git ls-remote "git://git.osmocom.org/$1" "refs/heads/$branch")"
+       rev="$(git ls-remote "https://git.osmocom.org/$1"; "refs/heads/$branch")"

        # check whether branch is a tag
        if [ "$rev" = "" ]; then
diff --git a/scripts/osmo-depcheck/config.py b/scripts/osmo-depcheck/config.py
index 13c1a95..28f0699 100644
--- a/scripts/osmo-depcheck/config.py
+++ b/scripts/osmo-depcheck/config.py
@@ -2,7 +2,7 @@
 # Copyright 2018 sysmocom - s.f.m.c. GmbH <[email protected]>

 # Where to clone sources from (with trailing slash)
-git_url_prefix = "git://git.osmocom.org/"
+git_url_prefix = "https://git.osmocom.org/";

 # Default projects to build when none are specified on the command line
 projects = ("osmo-bts",
diff --git a/scripts/osmo-depcheck/dependencies.py 
b/scripts/osmo-depcheck/dependencies.py
index 9b5187d..4e611ad 100644
--- a/scripts/osmo-depcheck/dependencies.py
+++ b/scripts/osmo-depcheck/dependencies.py
@@ -14,7 +14,7 @@
     """ Clone a missing git repository and checkout a specific version tag.

         :param workdir: path to where all data (git, build, install) is stored
-        :param prefix: git url prefix (e.g. "git://git.osmocom.org/")
+        :param prefix: git url prefix (e.g. "https://git.osmocom.org/";)
         :param cache_git_fetch: list of repositories that have already been
                                 fetched in this run of osmo-depcheck
         :param repository: Osmocom git repository name (e.g. "libosmo-abis")
@@ -56,7 +56,7 @@
         repository, parsing the "configure.ac" file, and recursing.

         :param workdir: path to where all data (git, build, install) is stored
-        :param prefix: git url prefix (e.g. "git://git.osmocom.org/")
+        :param prefix: git url prefix (e.g. "https://git.osmocom.org/";)
         :param cache_git_fetch: list of repositories that have already been
                                 fetched in this run of osmo-depcheck
         :param initial: the first program to look at (e.g. "osmo-bts")
diff --git a/scripts/osmo-deps.sh b/scripts/osmo-deps.sh
index 5a7dcc2..af3d555 100755
--- a/scripts/osmo-deps.sh
+++ b/scripts/osmo-deps.sh
@@ -10,7 +10,7 @@

 if ! test -d "$project";
 then
-  git clone "git://git.osmocom.org/$project" "$project"
+  git clone "https://git.osmocom.org/$project"; "$project"
 fi

 cd "$project"
diff --git a/scripts/osmo-layer1-headers.sh b/scripts/osmo-layer1-headers.sh
index f23a888..19db1d7 100755
--- a/scripts/osmo-layer1-headers.sh
+++ b/scripts/osmo-layer1-headers.sh
@@ -11,12 +11,12 @@

 case "$1" in
     sysmo)
-       uri="https://git.sysmocom.de/sysmo-bts/layer1-api";
+       uri="https://gitea.sysmocom.de/sysmo-bts/layer1-api";
        version_prefix=""
        version="origin/master"
        ;;
     oct)
-       uri="git://git.osmocom.org/octphy-2g-headers"
+       uri="https://git.osmocom.org/octphy-2g-headers";
        version_prefix=""
        version="origin/master"
        ;;

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/28349
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ia44e4127ff87a3d4d747225d3258188a0a891f1b
Gerrit-Change-Number: 28349
Gerrit-PatchSet: 5
Gerrit-Owner: laforge <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to