X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fcommon%2Finstall_common;h=901d287b60e230b10c6a369d7510785c5089c13f;hb=4a98a04ff0ceb544ca7f5f9033d5633dea7ab092;hp=ef8322bbccd63511a124eb1276febafa86809168;hpb=425f8cef392f81356280f6508384ac397aa2eb85;p=osm%2Fdevops.git diff --git a/jenkins/common/install_common b/jenkins/common/install_common old mode 100644 new mode 100755 index ef8322bb..901d287b --- a/jenkins/common/install_common +++ b/jenkins/common/install_common @@ -16,12 +16,12 @@ # # -RELEASE="ReleaseTWO" +RELEASE="ReleaseTHREE" REPOSITORY_KEY="OSM%20ETSI%20Release%20Key.gpg" REPOSITORY="stable" REPOSITORY_BASE="http://osm-download.etsi.org/repository/osm/debian" -while getopts ":r:k:u:R:" o; do +while getopts ":r:k:u:R:b:-:" o; do case "${o}" in r) REPOSITORY=${OPTARG} @@ -35,16 +35,18 @@ while getopts ":r:k:u:R:" o; do u) REPOSITORY_BASE=${OPTARG} ;; - *) - exit 1 + b) + ## ignore branch option + ;; + -) ;; esac done key_location=$REPOSITORY_BASE/$RELEASE/$REPOSITORY_KEY +echo $key_location -# key pulled from https -[[ "$key_location" =~ https ]] || key_location=${key_location/http/https} curl $key_location | apt-key add - -add-apt-repository -y "deb $REPOSITORY_BASE/$RELEASE $REPOSITORY SO UI RO osmclient openvim" +REPOSITORY_BASE=${REPOSITORY_BASE%/} +apt-get update && add-apt-repository -y "deb $REPOSITORY_BASE/$RELEASE $REPOSITORY SO UI RO MON IM osmclient openvim"