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

jrmccluskey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e242d52ce5 [release] Improve Java Artifact Validation Logic (#26564)
3e242d52ce5 is described below

commit 3e242d52ce516c79bbee8584249bf3422e18b4a3
Author: Jack McCluskey <[email protected]>
AuthorDate: Tue May 9 09:52:32 2023 -0400

    [release] Improve Java Artifact Validation Logic (#26564)
    
    * Flip confirmation logic so 'y' runs Java artifact validation
    
    * Add sleep to avoid being rate limited by nexus
---
 release/src/main/scripts/run_rc_validation.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/release/src/main/scripts/run_rc_validation.sh 
b/release/src/main/scripts/run_rc_validation.sh
index cc8eff895b2..4ad8af16723 100755
--- a/release/src/main/scripts/run_rc_validation.sh
+++ b/release/src/main/scripts/run_rc_validation.sh
@@ -124,7 +124,7 @@ fi
 
 echo "[Confirmation Required] Would you like to check published Java artifacts 
(if you've completed this step for this RC previously, you can safely skip 
this)? [y|N]"
 read confirmation
-if [[ $confirmation != "y" ]]; then
+if [[ $confirmation == "y" ]]; then
   echo "----------------- Checking published Java artifacts (should take ~1 
minute) -----------------"
 
   java_bom=$(curl 
"${REPO_URL}/org/apache/beam/beam-sdks-java-bom/${RELEASE_VER}/beam-sdks-java-bom-${RELEASE_VER}.pom")
@@ -140,6 +140,7 @@ if [[ $confirmation != "y" ]]; then
   for i in "${artifacts[@]}"
   do
       curl "${REPO_URL}/org/apache/beam/${i}/${RELEASE_VER}" -f || FAILED+=($i)
+      sleep 0.5
   done
   if [ ${#FAILED[@]} != 0 ];
   then

Reply via email to