From 92790a775fb96a9c175847bd37d37380216b8404 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Thu, 16 Jan 2025 12:58:28 +0100 Subject: [PATCH] wrong naming --- .ci/release.sh | 4 ++-- build.gradle.kts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.ci/release.sh b/.ci/release.sh index 7133de817..8415c5dfd 100755 --- a/.ci/release.sh +++ b/.ci/release.sh @@ -46,7 +46,7 @@ DRA_CREDS=$(vault kv get -field=data -format=json kv/ci-shared/release/dra-role) chmod -R a+r $PWD/.ci/output/* chmod -R a+w $PWD/.ci/output # Artifacts should be generated -if [ "$WORKFLOW" = "staging" ]; then +if [ "$WORKFLOW" = "snapshot" ]; then docker run --rm \ --name release-manager \ -e VAULT_ADDR="$(echo "$DRA_CREDS" | jq -r '.vault_addr')" \ @@ -62,7 +62,7 @@ if [ "$WORKFLOW" = "staging" ]; then --version "$STACK_VERSION" \ --artifact-set main fi -if [ "$WORKFLOW" = "snapshot" ]; then +if [ "$WORKFLOW" = "staging" ]; then docker run --rm \ --name release-manager \ -e VAULT_ADDR="$(echo "$DRA_CREDS" | jq -r '.vault_addr')" \ diff --git a/build.gradle.kts b/build.gradle.kts index 09b76fd2a..0e6b4091d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,8 +21,7 @@ allprojects { group = "co.elastic.clients" // Release manager provides a $VERSION. If not present, it's a local or CI snapshot build. version = System.getenv("VERSION") ?: - (File(project.rootDir, "config/version.txt").readText().trim() + "-" + - File(project.rootDir, "config/version-qualifier.txt").readText().trim() + "-SNAPSHOT") + (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT") repositories { maven { name = "Elastic-Snapshots"