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 e0110ac commit b9c0df2
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 @@ -141,6 +141,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}")
}
}
}


Expand Down

0 comments on commit b9c0df2

Please sign in to comment.