Skip to content

Commit

Permalink
Build: Set bwc builds to always set snapshot (#26704)
Browse files Browse the repository at this point in the history
This commit enforces bwc builds always generate snapshot versions, even
when testing release versions in CI.

closes #26702
  • Loading branch information
rjernst committed Sep 25, 2017
1 parent d5913b3 commit 84218b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions distribution/bwc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 84218b7

Please sign in to comment.