From c73cc83bad1f5d770c75b04efda8b8bd5e92ed96 Mon Sep 17 00:00:00 2001 From: Gustav Date: Fri, 20 May 2022 13:48:18 +0200 Subject: [PATCH] MSLRES-4940 Clean up release script --- release.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/release.sh b/release.sh index 2e8391e..7484675 100755 --- a/release.sh +++ b/release.sh @@ -1,8 +1,10 @@ #!/bin/sh -set -euo pipefail +set -euo + +[ -z "$REPO_URL" ] && echo "Need to set REPO_URL" && exit 1; +[ -z "$GPG_PASSPHRASE" ] && echo "Need to set GPG_PASSPHRASE" && exit 1; mvn release:clean -# TODO: tags are entered manually, need to fix for cicd, TODO: Gpg password needs to be provded manually -mvn release:prepare --batch-mode "-Darguments=-DskipTests -DuseTestRepo=true" # -Darguments=-Dgpg.passphrase="$GPG_PASSWORD" -mvn release:perform "-Darguments=-DskipTests -DuseTestRepo=true" +mvn release:prepare --batch-mode "-Darguments=-DskipTests -DuseInternalRepo=true -Ddependency-check.skip=true" +mvn release:perform "-Darguments=-DskipTests -DuseInternalRepo=true" \ No newline at end of file