MINOR: Update release script with new remote, better error handling, correct mvn deploy profile
Author: Ewen Cheslack-Postava <me@ewencp.org>
Reviewers: Damian Guy <damian.guy@gmail.com>, Ismael Juma <github@juma.me.uk>
Closes#4528 from ewencp/update-release-script
cmd("Creating '%s' in '%s' in your Apache home directory if it does not exist (errors are ok if the directory already exists)"%(dirname,basedir),"sftp -b - %s@home.apache.org"%apache_id,stdin=cmd_str)
cmd("Creating '%s' in '%s' in your Apache home directory if it does not exist (errors are ok if the directory already exists)"%(dirname,basedir),"sftp -b - %s@home.apache.org"%apache_id,stdin=cmd_str,allow_failure=True)
exceptsubprocess.CalledProcessError:
# This is ok. The command fails if the directory already exists
pass
@ -389,7 +393,7 @@ if not user_ok("Going to build and upload mvn artifacts based on these settings:
@@ -389,7 +393,7 @@ if not user_ok("Going to build and upload mvn artifacts based on these settings:
fail("Retry again later")
cmd("Building and uploading archives","./gradlew uploadArchivesAll",cwd=kafka_dir,env=jdk7_env)
cmd("Building and uploading archives","./gradlew uploadCoreArchives_2_12 -PscalaVersion=2.12",cwd=kafka_dir,env=jdk8_env)
cmd("Building and uploading archives","mvn deploy",cwd=streams_quickstart_dir,env=jdk7_env)
cmd("Building and uploading archives","mvn deploy -Pgpg-signing",cwd=streams_quickstart_dir,env=jdk7_env)