diff --git a/distribution/bwc/build.gradle b/distribution/bwc/build.gradle index 1b1ed3e018533..8f22089a16d07 100644 --- a/distribution/bwc/build.gradle +++ b/distribution/bwc/build.gradle @@ -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}") + } + } }