From: Mike Marchetti Date: Fri, 29 Sep 2017 18:30:28 +0000 (-0400) Subject: gen-repo.sh fix, allow install from master binary X-Git-Tag: v3.0.0rc~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=0d5676042e48358eafd714951e83971c1f0b1365;p=osm%2Fdevops.git gen-repo.sh fix, allow install from master binary Change-Id: I34dae078e1890f1031f6af1db9497e65ef6a6b1f Signed-off-by: Mike Marchetti --- diff --git a/installers/install_osm.sh b/installers/install_osm.sh index f39eb410..1e13852c 100755 --- a/installers/install_osm.sh +++ b/installers/install_osm.sh @@ -318,8 +318,8 @@ fi # if develop, we force master [ -z "$COMMIT_ID" ] && [ -n "$DEVELOP" ] && COMMIT_ID="master" -# if master, force install from source -[ -n "$COMMIT_ID" ] && [ "$COMMIT_ID" == "master" ] && INSTALL_FROM_SOURCE="y" +# forcing source from master removed. Now only install from source when explicit +# [ -n "$COMMIT_ID" ] && [ "$COMMIT_ID" == "master" ] && INSTALL_FROM_SOURCE="y" if [ -n "$TEST_INSTALLER" ]; then echo -e "\nUsing local devops repo for OSM installation" diff --git a/tools/gen-repo.sh b/tools/gen-repo.sh index 4ddb0170..6fb2ad86 100755 --- a/tools/gen-repo.sh +++ b/tools/gen-repo.sh @@ -33,6 +33,8 @@ function dump_vars() { echo "RSYNC_USER_HOST $RSYNC_USER_HOST" echo "RSYNC_OPTIONS $RSYNC_OPTIONS" echo "PUBLIC_KEY_FILE $PUBLIC_KEY_FILE" + echo "BUILD: $BUILD" + echo "BUILD_NUMBER: $BUILD_NUMBER" } IN_REPO="unstable" @@ -87,17 +89,18 @@ while getopts ":p:i:o:k:j::d:b:r:h:R:P:" o; do esac done -dump_vars - BASE_DIR=$REPO_BASE/osm/debian/$RELEASE_DIR [ -z "$BUILD" ] && FATAL "missing option: -b " +BUILD_NUMBER=$(echo "$BUILD" | sed -e 's/.*:: //g') + +dump_vars + [ -x $JFROG_CLI ] || FATAL "jfrog cli not found. Please install https://www.jfrog.com/getcli/ and use option '-j '" $JFROG_CLI rt download --build "$BUILD" osm-release || FATAL "Failed to download" -BUILD_NUMBER=$(basename "$BUILD") [ $PASSPHRASE_FILE ] && GPG_PASSPHRASE="--no-tty --no-use-agent --passphrase \"$(cat $PASSPHRASE_FILE)\""