From 56f4e738aa242ff79c89a518c65369238c3717e0 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 15 Apr 2023 16:05:40 +0200 Subject: [PATCH] Don't disable enforcer plugin --- .ci/build.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.ci/build.sh b/.ci/build.sh index 4f8ba65901..4ea6460990 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -55,12 +55,9 @@ function build() { # stop early for invalid maven version and branch/tag combination pmd_ci_maven_verify_version || exit 0 - # allow snapshot dependencies in release candidate builds: - if [[ "${PMD_CI_MAVEN_PROJECT_VERSION}" == *-rc* ]]; then - PMD_MAVEN_EXTRA_OPTS+=(-Denforcer.skip=true) - fi - - # skip tests when doing a release build + # skip tests when doing a release build - this makes the process faster + # it's a manual task now to verify that a release is only started, when the main branch + # was green before. This is usually checked via a local build, see ./do-release.sh if pmd_ci_maven_isReleaseBuild; then PMD_MAVEN_EXTRA_OPTS+=(-DskipTests=true) fi