This is an automated email from the ASF dual-hosted git repository.
snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 27dd13fa4 [Releasy] Let Maven artifact publication propagate failures
(#3407)
27dd13fa4 is described below
commit 27dd13fa4925ffaaeb290a956f5f97cad3c713e7
Author: Robert Stupp <[email protected]>
AuthorDate: Fri Jan 9 21:12:04 2026 +0100
[Releasy] Let Maven artifact publication propagate failures (#3407)
The Gradle build to publish the Maven artifacts is invoked like `./gradlew
... | tee <log>`. The (overall) exit code of pipes is the exit code of the
_last_ command. The exit codes of all pipe "parts" is available in bash's
`PIPESTATUS` array and needs to be checked.
---
.github/workflows/release-3-build-and-publish-artifacts.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/release-3-build-and-publish-artifacts.yml
b/.github/workflows/release-3-build-and-publish-artifacts.yml
index 16de6f9aa..2daca55f2 100644
--- a/.github/workflows/release-3-build-and-publish-artifacts.yml
+++ b/.github/workflows/release-3-build-and-publish-artifacts.yml
@@ -207,7 +207,7 @@ jobs:
source "${LIBS_DIR}/_exec.sh"
# Publish artifacts to staging repository
- exec_process ./gradlew publishToApache closeApacheStagingRepository
-Prelease -PuseGpgAgent --info 2>&1 | tee gradle_publish_output.txt
+ exec_process ./gradlew publishToApache closeApacheStagingRepository
-Prelease -PuseGpgAgent --info 2>&1 | tee gradle_publish_output.txt ; test
${PIPESTATUS[0]} -eq 0
# Extract staging repository ID from Gradle output
if grep -q "Created staging repository" gradle_publish_output.txt;
then