Push build.snapshot to BWC builds too
We need to push this flag down to the command line for BWC builds or the artifacts in release tests will have the wrong version (being considered snapshots instead of non-snapshots). Original commit: elastic/x-pack-elasticsearch@279fd02aa7
This commit is contained in:
parent
f73a7803ce
commit
374ab447f7
|
@ -192,7 +192,7 @@ subprojects {
|
|||
} else {
|
||||
executable = new File(xpackCheckoutDir, 'gradlew').toString()
|
||||
}
|
||||
final ArrayList<String> commandLineArgs = [":x-pack-elasticsearch:plugin:assemble"]
|
||||
final ArrayList<String> commandLineArgs = [":x-pack-elasticsearch:plugin:assemble", "-Dbuild.snapshot=${System.getProperty('build.snapshot') ?: 'true'}"]
|
||||
final LogLevel logLevel = gradle.startParameter.logLevel
|
||||
if ([LogLevel.QUIET, LogLevel.WARN, LogLevel.INFO, LogLevel.DEBUG].contains(logLevel)) {
|
||||
commandLineArgs << "--${logLevel.name().toLowerCase(Locale.ENGLISH)}"
|
||||
|
|
Loading…
Reference in New Issue