From 8489f8c4d686ed7eed376b818e707515b9cedbcc Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 24 Apr 2021 18:00:54 +0200 Subject: [PATCH] [ci] Don't run unnecessary build during release --- .ci/build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.ci/build.sh b/.ci/build.sh index 9b8824a8cd..40379d57a7 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -42,6 +42,8 @@ function build() { exit 0 fi + # stop early for invalid maven version and branch/tag combination + pmd_ci_maven_verify_version || exit 0 if [ "$(pmd_ci_utils_get_os)" != "linux" ]; then pmd_ci_log_group_start "Build with mvnw" @@ -52,9 +54,6 @@ function build() { exit 0 fi - # stop early for invalid maven version and branch/tag combination - pmd_ci_maven_verify_version || exit 0 - # only builds on pmd/pmd continue here pmd_ci_log_group_start "Setup environment" pmd_ci_setup_secrets_private_env