Skip to content

Commit d75540e

Browse files
committed
Build: Set bwc builds to always set snapshot (#26704)
This commit enforces bwc builds always generate snapshot versions, even when testing release versions in CI. closes #26702
1 parent f881919 commit d75540e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

distribution/bwc/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@ if (bwcVersion.endsWith('-SNAPSHOT')) {
113113
dependsOn checkoutBwcBranch, writeBuildMetadata
114114
dir = checkoutDir
115115
tasks = [':distribution:deb:assemble', ':distribution:rpm:assemble', ':distribution:zip:assemble']
116+
startParameter.systemPropertiesArgs = ['build.snapshot': 'true']
117+
doLast {
118+
List missing = [bwcDeb, bwcRpm, bwcZip].grep { file ->
119+
false == file.exists() }
120+
if (false == missing.empty) {
121+
throw new InvalidUserDataException(
122+
"Building bwc version didn't generate expected files ${missing}")
123+
}
124+
}
116125
}
117126

118127

0 commit comments

Comments
 (0)