This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.5 by this push:
     new e23d869c75f0 [SPARK-52258][BUILD][FOLLOW-UP][3.5] Add retry policies
e23d869c75f0 is described below

commit e23d869c75f0bb2529939212f972a04cfc67fde1
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Fri May 23 11:05:51 2025 +0900

    [SPARK-52258][BUILD][FOLLOW-UP][3.5] Add retry policies
---
 dev/create-release/release-build.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev/create-release/release-build.sh 
b/dev/create-release/release-build.sh
index e4e53b1f988b..307a3468dd6b 100755
--- a/dev/create-release/release-build.sh
+++ b/dev/create-release/release-build.sh
@@ -454,7 +454,7 @@ if [[ "$1" == "publish-release" ]]; then
   if ! is_dry_run; then
     echo "Creating Nexus staging repository"
     repo_request="<promoteRequest><data><description>Apache Spark 
$SPARK_VERSION (commit $git_hash)</description></data></promoteRequest>"
-    out=$(curl --retry 10 -X POST -d "$repo_request" -u 
$ASF_USERNAME:$ASF_PASSWORD \
+    out=$(curl --retry 10 --retry-connrefused --fail -X POST -d 
"$repo_request" -u $ASF_USERNAME:$ASF_PASSWORD \
       -H "Content-Type:application/xml" -v \
       $NEXUS_ROOT/profiles/$NEXUS_PROFILE/start)
     staged_repo_id=$(echo $out | sed -e 
"s/.*\(orgapachespark-[0-9]\{4\}\).*/\1/")
@@ -509,7 +509,7 @@ if [[ "$1" == "publish-release" ]]; then
       
dest_url="'$NEXUS_ROOT'/deployByRepositoryId/'$staged_repo_id'/org/apache/spark/$file_short"
       echo "[START] $file_short"
 
-      if curl --retry 10 -u "$ASF_USERNAME:$ASF_PASSWORD" \
+      if curl --retry 10 --retry-connrefused --fail -u 
"$ASF_USERNAME:$ASF_PASSWORD" \
           --upload-file "$file_short" "$dest_url"; then
         echo "[ OK  ] $file_short"
       else
@@ -530,7 +530,7 @@ if [[ "$1" == "publish-release" ]]; then
 
     echo "Closing nexus staging repository"
     
repo_request="<promoteRequest><data><stagedRepositoryId>$staged_repo_id</stagedRepositoryId><description>Apache
 Spark $SPARK_VERSION (commit $git_hash)</description></data></promoteRequest>"
-    out=$(curl --retry 10 -X POST -d "$repo_request" -u 
$ASF_USERNAME:$ASF_PASSWORD \
+    out=$(curl --retry 10 --retry-connrefused --fail -X POST -d 
"$repo_request" -u $ASF_USERNAME:$ASF_PASSWORD \
       -H "Content-Type:application/xml" -v \
       $NEXUS_ROOT/profiles/$NEXUS_PROFILE/finish)
     echo "Closed Nexus staging repository: $staged_repo_id"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to