osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/43956?usp=email )
Change subject: OBS: remove update_obs_eclipse_titan.sh ......................................................................
OBS: remove update_obs_eclipse_titan.sh
This script is outdated and not flexible enough to also handle the "optdir" versions of eclipse-titan we now have to install multiple versions at the same time. The wiki has been updated to have the direct steps that are necessary for updating titan, so remove this script.
Related: https://osmocom.org/projects/cellular-infrastructure/wiki/Upgrading_eclipse-... Change-Id: I39b8739c16c8bc2177a9ce4f269b946d64565aa4 --- D scripts/obs/update_obs_eclipse_titan.sh 1 file changed, 0 insertions(+), 47 deletions(-)
Approvals: fixeria: Looks good to me, but someone else must approve pespin: Looks good to me, approved Jenkins Builder: Verified
diff --git a/scripts/obs/update_obs_eclipse_titan.sh b/scripts/obs/update_obs_eclipse_titan.sh deleted file mode 100755 index 2439777..0000000 --- a/scripts/obs/update_obs_eclipse_titan.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -e -# https://osmocom.org/projects/cellular-infrastructure/wiki/Upgrading_eclipse-... -DIR="$(realpath "$(dirname "$0")")" -PROJ="$1" -GIT_URL="https://gitea.osmocom.org/osmith/titan.core" -CHECKOUT="$2" - -if [ $# != 2 ]; then - echo "usage:" - echo " update_obs_eclipse_titan.sh PROJ CHECKOUT" - echo "example:" - echo " update_obs_eclipse_titan.sh home:osmith:latest osmocom/11.0.0" - exit 1 -fi - -prepare_git_repo() { - cd "$DIR" - if ! [ -d _cache/eclipse-titan ]; then - mkdir -p _cache - git -C _cache clone "$GIT_URL" eclipse-titan - fi - - cd _cache/eclipse-titan - git fetch - git clean -fdx - git checkout -f -B "$CHECKOUT" - git reset --hard origin/"$CHECKOUT" -} - -update_obs_project() { - cd "$DIR" - ./update_obs_project.py \ - --apiurl https://obs.osmocom.org \ - --docker \ - --allow-unknown-package \ - --git-skip-checkout \ - --git-skip-fetch \ - "$PROJ" \ - eclipse-titan -} - -set -x -prepare_git_repo - -if [ -n "$PROJ" ]; then - update_obs_project -fi