From 5d80d0a3ba3e70693c49d5391754044dbf8fcbde Mon Sep 17 00:00:00 2001 From: suyash jain Date: Fri, 29 May 2026 18:39:16 +0530 Subject: [PATCH] DLPX-97390 Embed connector version in Windows installer artifact filename Read connectorVersion from build.gradle and copy the installer as DelphixConnectorInstaller-.exe instead of the flat name, allowing downstream pipeline stages (devops-gate stage0) to discover the version from the filename and publish under a version-namespaced directory. PR URL: https://www.github.com/delphix/linux-pkg/pull/394 --- packages/windows-connector/config.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/windows-connector/config.sh b/packages/windows-connector/config.sh index 2b8bbdbf..25a9b168 100644 --- a/packages/windows-connector/config.sh +++ b/packages/windows-connector/config.sh @@ -32,4 +32,15 @@ function build() { logmust cd "$INSTALLER_DIR" logmust sudo ../../gradlew createDebPackage logmust sudo mv ./build/distributions/*deb "$WORKDIR/artifacts/" + # + # Publish the standalone Windows connector installer with the connector version in its + # filename so downstream publishing can nest it under a version directory. + # The version is read from build.gradle (connectorVersion property). See DLPX-17800. + # + logmust test -f "$INSTALLER_DIR/build.gradle" + connector_version=$(grep -oP "connectorVersion\s*=\s*'\K[^']+" \ + "$INSTALLER_DIR/build.gradle") + logmust test -n "$connector_version" + logmust sudo cp ./build/DelphixConnector/DelphixConnectorInstaller.exe \ + "$WORKDIR/artifacts/DelphixConnectorInstaller-${connector_version}.exe" }