debian-*-jenkins: git clone from gerrit

Avoid occasional clone failures by replacing https://git.osmocom.org
with https://gerrit.osmocom.org.

  Step 18/28 : RUN git clone https://git.osmocom.org/osmo-ci osmo-ci && 	cp -v $(find osmo-ci/scripts 		-maxdepth 1 		-type f ) 	   /usr/local/bin
   ---> Running in c1c0bc9fb861
  Cloning into 'osmo-ci'...
  error:  (curl_result = 56, http_code = 200, sha1 = ded2f31cbac2e7b0ae6c3c4147f4e21ab1ce9b98)
  error: Unable to find ded2f31cbac2e7b0ae6c3c4147f4e21ab1ce9b98 under https://git.osmocom.org/osmo-ci
  Cannot obtain needed tree ded2f31cbac2e7b0ae6c3c4147f4e21ab1ce9b98
  while processing commit bff275075548c443596aa1eb80d784e4cd3c2231.
  error: fetch failed.

Related: SYS#5857
Change-Id: I9ad8e5755c5d520ff33d85792a5a70da62d05253
This commit is contained in:
Oliver Smith 2022-03-01 09:39:28 +01:00 committed by osmith
parent 254464d830
commit 2ce4f7593b
2 changed files with 7 additions and 7 deletions

View File

@ -138,20 +138,20 @@ RUN chown build:build /build
# Install osmo-python-tests for python2 (when building old tags again new releases)
ARG OSMO_PYTHON2_TESTS_COMMIT=fb4b813d4df62b7b2445bdced961eb1847267eed
ADD http://git.osmocom.org/python/osmo-python-tests/patch/?id=$OSMO_PYTHON2_TESTS_COMMIT /tmp/osmo-python-tests2-commit
RUN git clone https://git.osmocom.org/python/osmo-python-tests osmo-python-tests2 && \
RUN git clone https://gerrit.osmocom.org/python/osmo-python-tests osmo-python-tests2 && \
cd osmo-python-tests2 && \
git checkout $OSMO_PYTHON2_TESTS_COMMIT && \
python2 setup.py clean build install
# Install osmo-python-tests for python3
ADD http://git.osmocom.org/python/osmo-python-tests/patch /tmp/osmo-python-tests3-commit
RUN git clone https://git.osmocom.org/python/osmo-python-tests osmo-python-tests3 && \
RUN git clone https://gerrit.osmocom.org/python/osmo-python-tests osmo-python-tests3 && \
cd osmo-python-tests3 && \
python3 setup.py clean build install
# Install osmo-ci.git/scripts to /usr/local/bin
ADD http://git.osmocom.org/osmo-ci/patch /tmp/osmo-ci-commit
RUN git clone https://git.osmocom.org/osmo-ci osmo-ci && \
RUN git clone https://gerrit.osmocom.org/osmo-ci osmo-ci && \
cp -v $(find osmo-ci/scripts \
-maxdepth 1 \
-type f ) \
@ -159,7 +159,7 @@ RUN git clone https://git.osmocom.org/osmo-ci osmo-ci && \
# Install osmo-gsm-manuals to /opt/osmo-gsm-manuals
ADD http://git.osmocom.org/osmo-gsm-manuals/patch /tmp/osmo-gsm-manuals-commit
RUN git -C /opt clone https://git.osmocom.org/osmo-gsm-manuals
RUN git -C /opt clone https://gerrit.osmocom.org/osmo-gsm-manuals
# Set a UTF-8 locale
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \

View File

@ -140,20 +140,20 @@ RUN chown build:build /build
# Install osmo-python-tests for python2 (when building old tags again new releases)
ARG OSMO_PYTHON2_TESTS_COMMIT=fb4b813d4df62b7b2445bdced961eb1847267eed
ADD http://git.osmocom.org/python/osmo-python-tests/patch/?id=$OSMO_PYTHON2_TESTS_COMMIT /tmp/osmo-python-tests2-commit
RUN git clone https://git.osmocom.org/python/osmo-python-tests osmo-python-tests2 && \
RUN git clone https://gerrit.osmocom.org/python/osmo-python-tests osmo-python-tests2 && \
cd osmo-python-tests2 && \
git checkout $OSMO_PYTHON2_TESTS_COMMIT && \
python2 setup.py clean build install
# Install osmo-python-tests for python3
ADD http://git.osmocom.org/python/osmo-python-tests/patch /tmp/osmo-python-tests3-commit
RUN git clone https://git.osmocom.org/python/osmo-python-tests osmo-python-tests3 && \
RUN git clone https://gerrit.osmocom.org/python/osmo-python-tests osmo-python-tests3 && \
cd osmo-python-tests3 && \
python3 setup.py clean build install
# Install osmo-ci.git/scripts to /usr/local/bin
ADD http://git.osmocom.org/osmo-ci/patch /tmp/osmo-ci-commit
RUN git clone https://git.osmocom.org/osmo-ci osmo-ci && \
RUN git clone https://gerrit.osmocom.org/osmo-ci osmo-ci && \
cp -v $(find osmo-ci/scripts \
-maxdepth 1 \
-type f ) \