Don't disable enforcer plugin

This commit is contained in:
Andreas Dangel
2023-04-15 16:05:40 +02:00
parent c9ef4531e9
commit 56f4e738aa

View File

@ -55,12 +55,9 @@ function build() {
# stop early for invalid maven version and branch/tag combination # stop early for invalid maven version and branch/tag combination
pmd_ci_maven_verify_version || exit 0 pmd_ci_maven_verify_version || exit 0
# allow snapshot dependencies in release candidate builds: # skip tests when doing a release build - this makes the process faster
if [[ "${PMD_CI_MAVEN_PROJECT_VERSION}" == *-rc* ]]; then # it's a manual task now to verify that a release is only started, when the main branch
PMD_MAVEN_EXTRA_OPTS+=(-Denforcer.skip=true) # was green before. This is usually checked via a local build, see ./do-release.sh
fi
# skip tests when doing a release build
if pmd_ci_maven_isReleaseBuild; then if pmd_ci_maven_isReleaseBuild; then
PMD_MAVEN_EXTRA_OPTS+=(-DskipTests=true) PMD_MAVEN_EXTRA_OPTS+=(-DskipTests=true)
fi fi