Hi there, On 08/01/16 09:59, puneet singh wrote: > I am using cloudbees custom build environment plugin to create docker > container and run CI build inside it. > I'm facing following error kindly help me with this. > > ERROR: Processing failed due to a bug in the code. Please report this to > jenkinsci-users@googlegroups.com > java.lang.RuntimeException > <http://stacktrace.jenkins-ci.org/search?query=java.lang.RuntimeException>: > Failed to build docker image from project Dockerfile > at > com.cloudbees.jenkins.plugins.docker_build_env.Docker.buildImage(Docker.java:127) > <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.jenkins.plugins.docker_build_env.Docker.buildImage&entity=method> > at > com.cloudbees.jenkins.plugins.docker_build_env.DockerfileImageSelector.prepareDockerImage(DockerfileImageSelector.java:41) > <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.jenkins.plugins.docker_build_env.DockerfileImageSelector.prepareDockerImage&entity=method> > at > com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:167) > <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp&entity=method>
You didn't mention which version of the plugin you're using, but it seems to be the latest version. The plugin appears to be wrongly causing that "processing failed" error message to be shown — that should be handled more gracefully. Code: https://github.com/jenkinsci/docker-custom-build-environment-plugin/blob/docker-custom-build-environment-1.6.4/src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/Docker.java#L120-L128 According to that part of the source code, running the `docker build` command failed, and any output from the docker command will have been written to the build log, right before the error message you've posted here. So try looking there. I also note that there has been a lot of activity since the most recent plugin release, so maybe the maintainers will make a new release soon, which will fix this or add more checks or more logging etc.. Regards, Chris -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/569050B4.9080208%40orr.me.uk. For more options, visit https://groups.google.com/d/optout.