Unverified Commit 58ab2592 authored by Derek Nola's avatar Derek Nola Committed by GitHub

For E2E upgrade test, automatically determine the channel to use (#10461)

* For E2E upgrade test, determine the upgrade channel Signed-off-by: 's avatarDerek Nola <derek.nola@suse.com> * Fix typos Signed-off-by: 's avatarDerek Nola <derek.nola@suse.com> --------- Signed-off-by: 's avatarDerek Nola <derek.nola@suse.com>
parent c36db53e
...@@ -639,7 +639,13 @@ steps: ...@@ -639,7 +639,13 @@ steps:
if [ "$DRONE_BUILD_EVENT" = "pull_request" ]; then if [ "$DRONE_BUILD_EVENT" = "pull_request" ]; then
cd ../upgradecluster cd ../upgradecluster
vagrant destroy -f vagrant destroy -f
E2E_RELEASE_CHANNEL="latest" go test -v -timeout=45m ./upgradecluster_test.go -ci -local # Convert release-1.XX branch to v1.XX channel
if [ "$DRONE_BRANCH" = "master" ]; then
UPGRADE_CHANNEL="latest"
else
UPGRADE_CHANNEL=$(echo $DRONE_BRANCH | sed 's/release-/v/')
fi
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
fi fi
- docker stop registry && docker rm registry - docker stop registry && docker rm registry
......
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