Commit baeb1972 authored by Derek Nola's avatar Derek Nola

Cover edge case when on new minor release for E2E upgrade test (#10781)

parent 786c9bd5
...@@ -653,6 +653,10 @@ steps: ...@@ -653,6 +653,10 @@ steps:
UPGRADE_CHANNEL="latest" UPGRADE_CHANNEL="latest"
else else
UPGRADE_CHANNEL=$(echo $DRONE_BRANCH | sed 's/release-/v/') UPGRADE_CHANNEL=$(echo $DRONE_BRANCH | sed 's/release-/v/')
# Check if the UPGRADE_CHANNEL exists, in the case of new minor releases it won't
if ! curl --head --silent --fail https://update.k3s.io/v1-release/channels/$UPGRADE_CHANNEL; then
UPGRADE_CHANNEL="latest"
fi
fi fi
E2E_RELEASE_CHANNEL=$UPGRADE_CHANNEL go test -v -timeout=45m ./upgradecluster_test.go -ci -local E2E_RELEASE_CHANNEL=$UPGRADE_CHANNEL go test -v -timeout=45m ./upgradecluster_test.go -ci -local
cp ./coverage.out /tmp/artifacts/upgrade-coverage.out cp ./coverage.out /tmp/artifacts/upgrade-coverage.out
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment