From a591c0c0278e906b9677de6df8188991f21265a4 Mon Sep 17 00:00:00 2001 From: David Simansky Date: Wed, 9 Mar 2022 16:03:49 +0100 Subject: [PATCH] Fix Serving & Eventing version fetch in e2e tests (#1625) --- test/presubmit-integration-tests-latest-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/presubmit-integration-tests-latest-release.sh b/test/presubmit-integration-tests-latest-release.sh index 997000214..646014b4b 100755 --- a/test/presubmit-integration-tests-latest-release.sh +++ b/test/presubmit-integration-tests-latest-release.sh @@ -17,7 +17,7 @@ # This script is used in Knative/test-infra as a custom prow job to run the # integration tests against Knative Serving / Eventing of a specific version. -export KNATIVE_SERVING_VERSION="`git ls-remote --heads git@github.com:knative/serving.git | grep release- | cut -d '-' -f2 | sort -r | head -n 1`" -export KNATIVE_EVENTING_VERSION="`git ls-remote --heads git@github.com:knative/eventing.git | grep release- | cut -d '-' -f2 | sort -r | head -n 1`" +export KNATIVE_SERVING_VERSION="`git ls-remote --tags --ref https://github.com/knative/serving.git | cut -d '-' -f2 | cut -d 'v' -f2 | sort -Vr | head -n 1`" +export KNATIVE_EVENTING_VERSION="`git ls-remote --tags --ref https://github.com/knative/eventing.git | cut -d '-' -f2 | cut -d 'v' -f2 | sort -Vr | head -n 1`" $(dirname $0)/presubmit-tests.sh --integration-tests