From 26e57df0a8b4c0bf5d04e4da01e403386bf74278 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Fri, 11 Mar 2016 11:52:48 +0900 Subject: [PATCH] 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 a4e85b2bcd668a4f789436740f2d9d882d3ee09c. Change-Id: I50cd71393e095afbb20ab73a2f6ddbf1c16b35a3 --- tools/plugin_archetype_deploy.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/tools/plugin_archetype_deploy.sh b/tools/plugin_archetype_deploy.sh index 4ad8b7089c..b16ce95bf7 100755 --- a/tools/plugin_archetype_deploy.sh +++ b/tools/plugin_archetype_deploy.sh @@ -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)