From b9c0df26543ceb25ca19519069d3197f126536fb Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Tue, 19 Sep 2017 17:41:51 -0700 Subject: [PATCH] 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 --- distribution/bwc/build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) 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}") + } + } }