TSK-26: reordered skip promts so that builds from other repos don't fail
This commit is contained in:
parent
4a63e6c474
commit
1d55b9456b
|
|
@ -110,10 +110,6 @@ function main {
|
||||||
helpAndExit 1
|
helpAndExit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$debug" && (-z "$encrypted_57343c8b243e_key" || -z "$encrypted_57343c8b243e_iv") ]]; then
|
|
||||||
echo "you are not travis or travis does not have the correct encryption key and iv" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$TRAVIS_REPO_SLUG" != "$reqRepo" ]]; then
|
if [[ "$TRAVIS_REPO_SLUG" != "$reqRepo" ]]; then
|
||||||
echo "Skipping release to sonatype because this repo's name does not match with: $reqRepo"
|
echo "Skipping release to sonatype because this repo's name does not match with: $reqRepo"
|
||||||
|
|
@ -125,6 +121,11 @@ function main {
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -z "$debug" && (-z "$encrypted_57343c8b243e_key" || -z "$encrypted_57343c8b243e_iv") ]]; then
|
||||||
|
echo "you are not travis or travis does not have the correct encryption key and iv" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
local parent_dir="$1"
|
local parent_dir="$1"
|
||||||
local profile="release"
|
local profile="release"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue