Skip to content

Commit

Permalink
apacheGH-44451: [Release] Retry on HTTP error in Java upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 17, 2024
1 parent d0e7d07 commit ddafd2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dev/release/06-java-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ for pom in *.pom; do
classifiers=""
args=()
args+=(deploy:deploy-file)
args+=(-Durl=https://repository.apache.org/service/local/staging/deploy/maven2)
args+=(-DrepositoryId=apache.releases.https)
args+=(-DretryFailedDeploymentCount=10)
args+=(-Durl=https://repository.apache.org/service/local/staging/deploy/maven2)
pom="${PWD}/${pom}"
args+=(-DpomFile="${pom}")
if [ -f "${base}.jar" ]; then
Expand Down Expand Up @@ -139,7 +140,7 @@ for pom in *.pom; do
args+=(-Dtypes="${types}")
args+=(-Dclassifiers="${classifiers}")
pushd "${SOURCE_DIR}"
mvn deploy:deploy-file "${args[@]}"
mvn "${args[@]}"
popd
done

Expand Down

0 comments on commit ddafd2b

Please sign in to comment.