mirror of
https://github.com/k3s-io/k3s.git
synced 2026-05-28 04:34:19 -04:00
Cover edge case when on new minor release for E2E upgrade test (#10781)
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
parent
fa6940d03d
commit
254c16fdd5
1 changed files with 4 additions and 0 deletions
|
|
@ -644,6 +644,10 @@ steps:
|
|||
UPGRADE_CHANNEL="latest"
|
||||
else
|
||||
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
|
||||
E2E_RELEASE_CHANNEL=$UPGRADE_CHANNEL go test -v -timeout=45m ./upgradecluster_test.go -ci -local
|
||||
cp ./coverage.out /tmp/artifacts/upgrade-coverage.out
|
||||
|
|
|
|||
Loading…
Reference in a new issue