This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit a16aaa23ae9d5c991846762e92070d774cfef1d9 Author: Pasquale Congiusti <[email protected]> AuthorDate: Wed Oct 26 11:22:48 2022 +0200 fix(e2e): provide snapshot repository --- e2e/local/util.go | 4 ++++ script/Makefile | 1 + 2 files changed, 5 insertions(+) diff --git a/e2e/local/util.go b/e2e/local/util.go index aa2ffd2fe..4d6e5ca4e 100644 --- a/e2e/local/util.go +++ b/e2e/local/util.go @@ -31,6 +31,7 @@ import ( ) var runtimeRepo = os.Getenv("STAGING_RUNTIME_REPO") +var runtimeVersion = os.Getenv("RUNTIME_VERSION") func Docker(args ...string) string { cmd := exec.CommandContext(TestContext, "docker", args...) @@ -58,5 +59,8 @@ func kamelWithContext(ctx context.Context, args ...string) *cobra.Command { if runtimeRepo != "" { args = append(args, "--maven-repository", runtimeRepo) } + if strings.HasSuffix(runtimeVersion, "-SNAPSHOT") { + args = append(args, "--maven-repository", "https://repository.apache.org/content/repositories/snapshots-group@snapshots") + } return KamelWithContext(ctx, args...) } diff --git a/script/Makefile b/script/Makefile index de4932aa1..72682055f 100644 --- a/script/Makefile +++ b/script/Makefile @@ -279,6 +279,7 @@ test-service-binding: do-build test-local: do-build STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)" \ + RUNTIME_VERSION="$(RUNTIME_VERSION)" \ go test -timeout 30m -v ./e2e/local -tags=integration $(TEST_LOCAL_RUN) -json 2>&1 | gotestfmt test-registry-maven-wagon: do-build
