Skip to content

Commit

Permalink
Never support Docker build features on Windows (#100218) (#100225)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Oct 3, 2023
1 parent 2f8fa89 commit 1e8696f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package org.elasticsearch.gradle.internal.docker;

import org.elasticsearch.gradle.Architecture;
import org.elasticsearch.gradle.OS;
import org.elasticsearch.gradle.Version;
import org.elasticsearch.gradle.internal.info.BuildParams;
import org.gradle.api.GradleException;
Expand Down Expand Up @@ -200,6 +201,11 @@ private boolean isExcludedOs() {
return false;
}

// Even if for some reason Docker exists on Windows agents, flag it as unsupported
if (OS.current() == OS.WINDOWS) {
return true;
}

// Only some hosts in CI are configured with Docker. We attempt to work out the OS
// and version, so that we know whether to expect to find Docker. We don't attempt
// to probe for whether Docker is available, because that doesn't tell us whether
Expand Down

0 comments on commit 1e8696f

Please sign in to comment.