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 f0befda93f51 [SPARK-52258][BUILD][FOLLOW-UP] Add retries when connecting to the ASF repo f0befda93f51 is described below commit f0befda93f51484cce531af348fdcf6e52fcc099 Author: Hyukjin Kwon <gurwls...@apache.org> AuthorDate: Thu May 22 19:32:55 2025 +0900 [SPARK-52258][BUILD][FOLLOW-UP] Add retries when connecting to the ASF repo This PR adds retries when connecting to the ASF repo `curl` to ASF repo is actually flaky. No, dev-only. Manually. No. Closes #50983 from HyukjinKwon/SPARK-52258-followup. Authored-by: Hyukjin Kwon <gurwls...@apache.org> Signed-off-by: Hyukjin Kwon <gurwls...@apache.org> (cherry picked from commit 1c2b1e0fc8d46adff6715012ce4d434f2c6acd42) Signed-off-by: Hyukjin Kwon <gurwls...@apache.org> --- dev/create-release/release-build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/create-release/release-build.sh b/dev/create-release/release-build.sh index 3ca640378e47..e4e53b1f988b 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 -X POST -d "$repo_request" -u $ASF_USERNAME:$ASF_PASSWORD \ + out=$(curl --retry 10 -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/") @@ -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 -X POST -d "$repo_request" -u $ASF_USERNAME:$ASF_PASSWORD \ + out=$(curl --retry 10 -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: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org