Skip to content

Commit 3cc32e0

Browse files
committed
release-version.sh: add --skip-deploy flag
We need this to release the ImageJ launcher, because its deployment is more complicated. It needs to build on several architectures and then deploy them all simultaneously. We already have our trusty Jenkins for this, so let's skip the deploy when running the script, and instead tell Jenkins to do the deploy from the tag after it is pushed.
1 parent b4e2b85 commit 3cc32e0

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

release-version.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ IMAGEJ_THIRDPARTY_REPOSITORY=$IMAGEJ_BASE_REPOSITORY/thirdparty
1212
BATCH_MODE=--batch-mode
1313
EXTRA_ARGS=
1414
SKIP_PUSH=
15+
SKIP_DEPLOY=
1516
ALT_REPOSITORY=
1617
while test $# -gt 0
1718
do
1819
case "$1" in
1920
--no-batch-mode) BATCH_MODE=;;
2021
--skip-push) SKIP_PUSH=t;;
22+
--skip-deploy) SKIP_DEPLOY=t;;
2123
--extra-arg=*|--extra-args=*)
2224
EXTRA_ARGS="$EXTRA_ARGS ${1#--*=}";;
2325
--alt-repository=imagej-releases)
@@ -79,7 +81,10 @@ then
7981
fi ||
8082
exit
8183

82-
git checkout $tag &&
83-
mvn clean verify &&
84-
mvn $ALT_REPOSITORY -DupdateReleaseInfo=true deploy &&
85-
git checkout @{-1}
84+
if test -z "$SKIP_DEPLOY"
85+
then
86+
git checkout $tag &&
87+
mvn clean verify &&
88+
mvn $ALT_REPOSITORY -DupdateReleaseInfo=true deploy &&
89+
git checkout @{-1}
90+
fi

0 commit comments

Comments
 (0)