vjuranek / docker-build-step-plugin

Other
8 stars 97 forks source link

plugin version 1.38 Unsupported protocol scheme found #48

Closed norricorp closed 7 years ago

norricorp commented 7 years ago

Hi Vojtech, I am using docker 1.12.5 on my Jenkins server and get the message above. The latest version of the plugin is 1.35 from May. Will there be a new version of the plugin to fix this? I had a quick look through the code and in CreateContainerCommand.java, there is the line HostConfig hc = new HostConfig(); but the hc variable does not seem to be used so I wonder if the line can be removed? But having tried that it caused the plugin to fail far more quickly so a very bad idea! Regards

ed007m commented 7 years ago

I have the same trouble

norricorp commented 7 years ago

I notice that 1.38 is now available. When I run this I get the following error very early in docker commands. ERROR: Build step failed with exception com.github.dockerjava.api.exception.DockerClientException: Unsupported protocol scheme found: 'http://mint-gitlab:2375'. Only 'tcp://' or 'unix://' supported. at com.github.dockerjava.core.DefaultDockerClientConfig.checkDockerHostScheme(DefaultDockerClientConfig.java:96) at com.github.dockerjava.core.DefaultDockerClientConfig.(DefaultDockerClientConfig.java:82) at com.github.dockerjava.core.DefaultDockerClientConfig$Builder.build(DefaultDockerClientConfig.java:431) at com.github.dockerjava.core.DockerClientBuilder.getInstance(DockerClientBuilder.java:23) at org.jenkinsci.plugins.dockerbuildstep.DockerBuilder$DescriptorImpl.createDockerClient(DockerBuilder.java:139) at org.jenkinsci.plugins.dockerbuildstep.DockerBuilder$DescriptorImpl.getDockerClient(DockerBuilder.java:216)

norricorp commented 7 years ago

open new issue with better diagnostics