From 57f3bdbad4df048f309bf7a00f03a7fa25127ce7 Mon Sep 17 00:00:00 2001 From: Areli Fuss Date: Thu, 26 Oct 2017 14:08:33 +0300 Subject: [PATCH] Add connection check Add connection check before GPG key as debugging build failure on snap Change-Id: Iacb18c13ba7466157dd55774489956f224c2b0e3 Issue-Id: VVP-25 Signed-off-by: Areli Fuss --- assets/setup | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/assets/setup b/assets/setup index 8c431bc..ed42fc1 100755 --- a/assets/setup +++ b/assets/setup @@ -1,5 +1,5 @@ #!/bin/bash -# ============LICENSE_START======================================================= +# ============LICENSE_START======================================================= # org.onap.vvp/gitlab # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. @@ -43,7 +43,20 @@ source /RELEASE # Download & Install GitLab echo "deb https://packages.gitlab.com/gitlab/${PACKAGECLOUD_REPO}/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/gitlab_${RELEASE_PACKAGE}.list -wget -q -O - https://packages.gitlab.com/gpg.key | apt-key add - +#wget -q -O - https://packages.gitlab.com/gpg.key | apt-key add - + +echo "####################################################" +echo "[DBG] Test connection to https://packages.gitlab.com" +sleep 3 +curl -s --head https://packages.gitlab.com | head -n 1 +sleep 3 +echo "####################################################" + +echo "####################################################" +echo "[DBG] Test Get key" +curl -L https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey | apt-key add - +echo "####################################################" + apt-get update apt-get install -yq --no-install-recommends ${RELEASE_PACKAGE}=${RELEASE_VERSION} -- 2.16.6