Skip to content

Commit 8893e58

Browse files
authored
Skip Linux OS checks unless running in CI (#50664)
Closes #50393. When generating the packaging test tasks, skip the Linux OS checks unless we're running in CI.
1 parent 0ae2e23 commit 8893e58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/test/DistroTestPlugin.java

+7
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,13 @@ private static boolean shouldRunDockerTests(Project project) {
498498
return true;
499499

500500
case LINUX:
501+
// We don't attempt to check the current flavor and version of Linux unless we're
502+
// running in CI, because we don't want to stop people running the Docker tests in
503+
// their own environments if they really want to.
504+
if (BuildParams.isCi() == false) {
505+
return true;
506+
}
507+
501508
// Only some hosts in CI are configured with Docker. We attempt to work out the OS
502509
// and version, so that we know whether to expect to find Docker. We don't attempt
503510
// to probe for whether Docker is available, because that doesn't tell us whether

0 commit comments

Comments
 (0)