X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fcommon%2Finstall_common;h=4a7c352919906c6f38dc1647a35ace6daef3b725;hb=43e0c96734544f1ce57033303b88148820484653;hp=d9c1338c5ed3ea79100c58a2b0edb9f0fcdf93ba;hpb=7a2b4b7c90d9323487eda20eae0f4ca2bb659bda;p=osm%2Fdevops.git diff --git a/jenkins/common/install_common b/jenkins/common/install_common index d9c1338c..4a7c3529 100755 --- a/jenkins/common/install_common +++ b/jenkins/common/install_common @@ -21,7 +21,7 @@ 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,14 +35,15 @@ 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 curl $key_location | apt-key add - -apt-get update && add-apt-repository -y "deb $REPOSITORY_BASE/$RELEASE $REPOSITORY SO UI RO osmclient openvim" +apt-get update && add-apt-repository -y "deb $REPOSITORY_BASE/$RELEASE $REPOSITORY SO UI RO IM osmclient openvim"