Skip to content

Commit

Permalink
Find the build breakage point
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshithakamath94 committed Aug 2, 2023
1 parent bf8d613 commit 4616fe7
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions build_scripts/common/basic-gluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,8 @@ else
pushd "${GIT_REPO}"

#Its observed that fetch is failing so this little hack is added! Will delete in future if it turns out useless!
git fetch --depth=1 "${GIT_URL}" "${GERRIT_REFSPEC}" > /dev/null
if [ $? = 0 ]; then
echo "Fetch succeeded"
else
sleep 2
git fetch "${GIT_URL}" "${GERRIT_REFSPEC}"
fi

git checkout -b "${GERRIT_REFSPEC}" FETCH_HEAD
git fetch --depth=1 "${GIT_URL}" ac2ec85d57cb6f0686f68dc29e07d3ebe1aaa12d > /dev/null
git checkout -b refs/heads/next FETCH_HEAD

# update libntirpc
git submodule update --init || git submodule sync
Expand All @@ -113,6 +106,7 @@ else
ntirpc_rpm=${rpm_arch}/libntirpc-${ntirpc_version}.${rpm_arch}.rpm
fi
yum -y install {x86_64,noarch}/*.rpm
exit 1

#Test block
ulimit -a
Expand Down

0 comments on commit 4616fe7

Please sign in to comment.