Remove confirmation step from plugin archetype deploy script
The confirmation step was useful when we were deploying to the Google
storage bucket, because it would prevent us from accidentally replacing
existing released artifacts.
However it is less useful now that we are deploying to Maven Central
via Sonatype. If we accidentally deploy release artifacts, we simply
delete the staging repository.
This partially reverts commit a4e85b2bcd
.
Change-Id: I50cd71393e095afbb20ab73a2f6ddbf1c16b35a3
This commit is contained in:
@@ -63,21 +63,9 @@ function build_and_deploy
|
||||
-Dfile=target/$module-$ver.jar
|
||||
}
|
||||
|
||||
function confirm
|
||||
{
|
||||
read -n1 -p "Are you sure you want to deploy? [N/y]: " ready
|
||||
if [[ ! $ready == [Yy] ]]; then
|
||||
if [[ $ready == [Nn] || -z $ready ]]; then
|
||||
echo; exit
|
||||
else
|
||||
echo; confirm
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function run
|
||||
{
|
||||
test ${dryRun:-'false'} == 'false' && confirm
|
||||
test ${dryRun:-'false'} == 'false'
|
||||
root=$(instroot)
|
||||
cd "$root"
|
||||
ver=$(getver GERRIT_VERSION)
|
||||
|
Reference in New Issue
Block a user