From ea857e06395ee3451ae47181fcfe64807fb74892 Mon Sep 17 00:00:00 2001 From: rameshthoomu Date: Mon, 6 Aug 2018 15:01:26 -0400 Subject: [PATCH] FAB-11488 Update CI script Update byfn_eyfn.sh script to fetch the binaries from the correct nexus url. Change-Id: I3ce15b5c39dd2253a41e545defc2be98874494aa Signed-off-by: rameshthoomu --- scripts/Jenkins_Scripts/byfn_eyfn.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Jenkins_Scripts/byfn_eyfn.sh b/scripts/Jenkins_Scripts/byfn_eyfn.sh index 04395e17..feeb87c2 100755 --- a/scripts/Jenkins_Scripts/byfn_eyfn.sh +++ b/scripts/Jenkins_Scripts/byfn_eyfn.sh @@ -9,14 +9,14 @@ ARCH=$(dpkg --print-architecture) echo "-----------> ARCH" $ARCH MARCH=$(uname -s|tr '[:upper:]' '[:lower:]') echo "-----------> MARCH" $MARCH -MVN_METADATA=$(echo "https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric-stable/maven-metadata.xml") +VERSION=1.2.1 +MVN_METADATA=$(echo "https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric-$VERSION-stable/maven-metadata.xml") curl -L "$MVN_METADATA" > maven-metadata.xml RELEASE_TAG=$(cat maven-metadata.xml | grep release) COMMIT=$(echo $RELEASE_TAG | awk -F - '{ print $4 }' | cut -d "<" -f1) -VERSION=1.2.1 echo "-----------> BASE_VERSION = $VERSION" cd $BASE_FOLDER/fabric-samples || exit -curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric-stable/$MARCH-$ARCH.$VERSION-stable-$COMMIT/hyperledger-fabric-stable-$MARCH-$ARCH.$VERSION-stable-$COMMIT.tar.gz | tar xz +curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric-$VERSION-stable/$MARCH-$ARCH.$VERSION-stable-$COMMIT/hyperledger-fabric-$VERSION-stable-$MARCH-$ARCH.$VERSION-stable-$COMMIT.tar.gz | tar xz cd first-network || exit export PATH=gopath/src/github.com/hyperledger/fabric-samples/bin:$PATH