mirror of https://github.com/apache/kafka.git
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 <djacot@confluent.io>, Ismael Juma <ismael@juma.me.uk>
This commit is contained in:
parent
41d8580819
commit
fd8cc0fb9c
10
release.py
10
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("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)
|
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("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)
|
if not user_ok("Have you uploaded artifacts in %s, listed above, to public_html in your Apache home directory (y/n)?: " % artifacts_dir):
|
||||||
cmd("Extracting artifacts in Apache public_html directory",
|
fail("Ok, giving up")
|
||||||
["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)
|
|
||||||
])
|
|
||||||
|
|
||||||
with open(os.path.expanduser("~/.gradle/gradle.properties")) as f:
|
with open(os.path.expanduser("~/.gradle/gradle.properties")) as f:
|
||||||
contents = f.read()
|
contents = f.read()
|
||||||
|
|
Loading…
Reference in New Issue