Skip to content

Commit

Permalink
Merge pull request #284 from antonym/ensure_latest_repo
Browse files Browse the repository at this point in the history
Ensure we always have the latest repo
  • Loading branch information
antonym authored Nov 30, 2018
2 parents 6c9a1c4 + 40978f8 commit c5b7113
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ export RPC_TARGET_CHECKOUT=${RE_JOB_UPGRADE_TO:-'newton'}
if [[ ${RE_JOB_UPGRADE_TO} == "r14.current" ]]; then
pushd /opt/rpc-openstack
echo "Getting latest tagged release for r14.current..."
git fetch --tags
git fetch --all
RPC_TARGET_CHECKOUT=`git for-each-ref refs/tags --sort=-taggerdate --format='%(tag)' | grep r14. | head -1`
echo "Upgrading to latest release of ${RPC_TARGET_CHECKOUT} (Newton)..."
popd
else
echo "Ensure we have the latest version of the repo..."
pushd /opt/rpc-openstack
git fetch --all
popd
fi

if [ "${RE_JOB_UPGRADE_ACTION}" == "leap" ]; then
Expand Down

0 comments on commit c5b7113

Please sign in to comment.