From 5930dfc06a2f77f3c7573db606f432945932ec28 Mon Sep 17 00:00:00 2001 From: rameshthoomu Date: Mon, 6 Aug 2018 12:02:57 -0400 Subject: [PATCH] FAB-11488 Update CI script Update byfn_eyfn.sh script to fetch the binaries from the correct nexus url. Change-Id: I0ea675235cc0dce691b8a1bbf30951504f0a8112 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 49cd66803d..7785bdd2d9 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.3.0 +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.3.0 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