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

dongjoon-hyun pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.x by this push:
     new f014cc754554 [SPARK-58070][INFRA] Remove curl -v flag from Nexus 
staging REST calls in `release-build.sh`
f014cc754554 is described below

commit f014cc7545540e6e05fa1fd6314f054925005508
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Thu Jul 9 14:51:09 2026 -0700

    [SPARK-58070][INFRA] Remove curl -v flag from Nexus staging REST calls in 
`release-build.sh`
    
    ### What changes were proposed in this pull request?
    
    This PR removes the `-v` flag from the two `curl` calls in the 
`publish-release` step of `dev/create-release/release-build.sh` that create and 
close the Nexus staging repository.
    
    ### Why are the changes needed?
    
    `curl -v` prints request headers to `stderr`, including the `Authorization` 
header with the base64-encoded ASF credentials. `do-release.sh` runs this 
script via `run_silent`, which writes stderr to `publish.log`, so the 
credentials end up in the log file.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No. This is an improvement on the scripts used by the release managers only.
    
    ### How was this patch tested?
    
    Manual review.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Fable 5
    
    Closes #57168 from dongjoon-hyun/SPARK-58070.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
    (cherry picked from commit 9c84a632dec14e99fd5dd0b9005c0695604ea414)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 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 8ec154ddf5da..0b428427c35d 100755
--- a/dev/create-release/release-build.sh
+++ b/dev/create-release/release-build.sh
@@ -912,7 +912,7 @@ if [[ "$1" == "publish-release" ]]; 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 --retry-all-errors -X POST -d "$repo_request" -u 
$ASF_USERNAME:$ASF_PASSWORD \
-      -H "Content-Type:application/xml" -v \
+      -H "Content-Type:application/xml" \
       $NEXUS_ROOT/profiles/$NEXUS_PROFILE/start)
     staged_repo_id=$(echo $out | sed -e 
"s/.*\(orgapachespark-[0-9]\{4\}\).*/\1/")
     echo "Created Nexus staging repository: $staged_repo_id"
@@ -990,7 +990,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 --retry-all-errors -X POST -d "$repo_request" -u 
$ASF_USERNAME:$ASF_PASSWORD \
-      -H "Content-Type:application/xml" -v \
+      -H "Content-Type:application/xml" \
       $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