Merge branch 'branchfrom--descriptor-packages'
[osm/devops.git] / jenkins / common / install_common
old mode 100644 (file)
new mode 100755 (executable)
index ef8322b..d844bdd
@@ -43,8 +43,6 @@ done
 
 key_location=$REPOSITORY_BASE/$RELEASE/$REPOSITORY_KEY
 
-# 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"
+apt update && add-apt-repository -y "deb $REPOSITORY_BASE/$RELEASE $REPOSITORY SO UI RO osmclient openvim"