Skip to content
Permalink
Browse files

[JENKINS-31220] Fix upgrade from a version prior to 1.6.2

  • Loading branch information...
Vlatombe committed Oct 28, 2015
1 parent cd90bcf commit fd3af57a2845b2fadb1ff9066340cbe89d495045
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/Docker.java
@@ -8,6 +8,8 @@
import hudson.model.TaskListener;
import hudson.util.ArgumentListBuilder;
import org.apache.commons.io.LineIterator;
import org.apache.commons.lang.StringUtils;

import org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint;
import org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint;
import org.jenkinsci.plugins.docker.commons.credentials.KeyMaterial;
@@ -173,7 +175,7 @@ public String runDetached(String image, String workdir, Map<String, String> volu
args.add("--link", link.getKey() + ":" + link.getValue());
}

if (net.length() > 0) {
if (StringUtils.isNotBlank(net)) {
args.add("--net", net);
}

0 comments on commit fd3af57

Please sign in to comment.
You can’t perform that action at this time.