Skip to content

Commit

Permalink
MSLRES-4940 Clean up release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav committed May 20, 2022
1 parent c097c53 commit c73cc83
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit c73cc83

Please sign in to comment.