Skip to content

Commit

Permalink
Merge pull request #80 from PierreBtz/dev
Browse files Browse the repository at this point in the history
[JENKINS-33632] Add a warning if the detected docker version is less than v1.8
  • Loading branch information
jglick committed Dec 8, 2016
2 parents eb142f6 + aedba6d commit 98d2af6
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -136,6 +136,8 @@ public static class Execution extends AbstractStepExecutionImpl {
if (dockerVersion != null) {
if (dockerVersion.isOlderThan(new VersionNumber("1.4"))) {
throw new AbortException("The docker version is less than v1.4. Pipeline functions requiring 'docker exec' will not work e.g. 'docker.inside'.");
} else if (dockerVersion.isOlderThan(new VersionNumber("1.8"))) {
listener.error("The docker version is less than v1.8. Running a 'docker.inside' from inside a container will not work.");
}
} else {
listener.error("Failed to parse docker version. Please note there is a minimum docker version requirement of v1.4.");
Expand Down

0 comments on commit 98d2af6

Please sign in to comment.