[ci] Don't run unnecessary build during release

This commit is contained in:
Andreas Dangel
2021-04-24 18:00:54 +02:00
parent 32275c3eeb
commit 8489f8c4d6

View File

@@ -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