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/09 05:47:22 UTC

[kafka] branch 2.7 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 2.7
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.7 by this push:
     new 9c2033c  MINOR: Remove unsupported rsync and ssh commands from release.py (#11309)
9c2033c is described below

commit 9c2033ca6c8fae616d218d04e47c17b263fd8791
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 81e8c4c..fa56861 100755
--- a/release.py
+++ b/release.py
@@ -616,16 +616,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()