Build: Set bwc builds to always set snapshot
This commit enforces bwc builds always generate snapshot versions, even
when testing release versions in CI.
closes
@@ -137,6 +137,15 @@ if (enabled) {
dependsOn checkoutBwcBranch, writeBuildMetadata
dir = checkoutDir
tasks = [':distribution:deb:assemble', ':distribution:rpm:assemble', ':distribution:zip:assemble']
+ startParameter.systemPropertiesArgs = ['build.snapshot': 'true']
+ doLast {
+ List missing = [bwcDeb, bwcRpm, bwcZip].grep { file ->
+ false == file.exists() }
+ if (false == missing.empty) {
+ throw new InvalidUserDataException(
+ "Building bwc version didn't generate expected files ${missing}")
+ }
+ }
}
artifacts {
