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

mck pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-builds.git


The following commit(s) were added to refs/heads/trunk by this push:
     new f8a555f  Fix rpms getting uploaded to artifactory
f8a555f is described below

commit f8a555ff18642ef0fb6a2b99defbeddff2b65714
Author: Mick Semb Wever <[email protected]>
AuthorDate: Wed May 25 10:45:26 2022 +0200

    Fix rpms getting uploaded to artifactory
---
 cassandra-release/finish_release.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cassandra-release/finish_release.sh 
b/cassandra-release/finish_release.sh
index a38a438..fdfac44 100755
--- a/cassandra-release/finish_release.sh
+++ b/cassandra-release/finish_release.sh
@@ -226,13 +226,13 @@ execute "cd $redhat_dist_dir"
 
 ROOTLEN=$(( ${#redhat_dist_dir} + 1))
 
-for i in $(find ${redhat_dist_dir} -mindepth 2 -type f -mtime -10 -not -path 
"*/.svn/*" -printf "%T@ %p\n" | sort -n -r | cut -d' ' -f 2); do
+for i in $(find ${redhat_dist_dir} -mindepth 1 -type f -mtime -10 -not -path 
"*/.svn/*" -printf "%T@ %p\n" | sort -n -r | cut -d' ' -f 2); do
     IFILE=`echo $(basename -- "$i") | cut -c 1`
     if [[ $IFILE != "." ]];
     then
         FDIR=`echo $i | cut -c ${ROOTLEN}-${#i}`
         echo "Uploading $FDIR"
-        execute "curl -X PUT -T $i -u${asf_username}:${ARTIFACTORY_API_KEY} 
https://apache.jfrog.io/artifactory/cassandra-rpm/${FDIR}?override=1";
+        execute "curl -X PUT -T $i -u${asf_username}:${ARTIFACTORY_API_KEY} 
https://apache.jfrog.io/artifactory/cassandra-rpm/${repo_series}/${FDIR}?override=1";
         sleep 1
     fi
 done


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

Reply via email to