You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by kk...@apache.org on 2021/09/08 20:31:39 UTC
[kafka] branch 3.0 updated: MINOR: Remove unsupported rsync and ssh
commands from release.py (#11309)
This is an automated email from the ASF dual-hosted git repository.
kkarantasis pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/3.0 by this push:
new 59d053b MINOR: Remove unsupported rsync and ssh commands from release.py (#11309)
59d053b is described below
commit 59d053b56eb2af3a9b2845e717e307eb74187224
Author: Konstantine Karantasis <ko...@confluent.io>
AuthorDate: Wed Sep 8 13:28:07 2021 -0700
MINOR: Remove unsupported rsync and ssh commands from release.py (#11309)
ssh and rsync access has been removed from home.apache.org.
Removing the commands from release.py and replacing them with a note to make sure they are manually uploaded with an sftp client instead.
Reviewers: David Jacot <dj...@confluent.io>, Ismael Juma <is...@juma.me.uk>
---
release.py | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/release.py b/release.py
index 1f45b7c..f43e244 100755
--- a/release.py
+++ b/release.py
@@ -619,16 +619,10 @@ for filename in os.listdir(artifacts_dir):
cmd("Generating SHA512 for " + full_path, "gpg --print-md sha512 %s > %s.sha512" % (fname, fname), shell=True, cwd=dir)
cmd("Listing artifacts to be uploaded:", "ls -R %s" % artifacts_dir)
-if not user_ok("Going to upload the artifacts in %s, listed above, to your Apache home directory. Ok (y/n)?): " % artifacts_dir):
- fail("Quitting")
cmd("Zipping artifacts", "tar -czf %s.tar.gz %s" % (artifact_name, artifact_name), cwd=work_dir)
-cmd("Uploading artifacts in %s to your Apache home directory" % artifacts_dir, "rsync %s.tar.gz %s@home.apache.org:%s.tar.gz" % (artifact_name, apache_id, artifact_name), cwd=work_dir)
-cmd("Extracting artifacts in Apache public_html directory",
- ["ssh",
- "%s@home.apache.org" % (apache_id),
- "mkdir -p public_html && rm -rf public_html/%s && mv %s.tar.gz public_html/ && cd public_html/ && tar -xf %s.tar.gz && rm %s.tar.gz" % (artifact_name, artifact_name, artifact_name, artifact_name)
- ])
+if not user_ok("Have you uploaded artifacts in %s, listed above, to public_html in your Apache home directory (y/n)?: " % artifacts_dir):
+ fail("Ok, giving up")
with open(os.path.expanduser("~/.gradle/gradle.properties")) as f:
contents = f.read()