Problem in Cloudbees custom build environment plugin integration with Jenkins

42 views
Skip to first unread message

puneet singh

unread,
Jan 8, 2016, 3:59:23 AM1/8/16
to Jenkins Users
Hi All,

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 jenkins...@googlegroups.com
java.lang.RuntimeException: Failed to build docker image from project Dockerfile
	at com.cloudbees.jenkins.plugins.docker_build_env.Docker.buildImage(Docker.java:127)
	at com.cloudbees.jenkins.plugins.docker_build_env.DockerfileImageSelector.prepareDockerImage(DockerfileImageSelector.java:41)
	at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:167)

what type of error is this?
Is it compatibility issue, my Jenkins version is 1.627
What should i need to do.

Thanks 
regards
Puneet Singh

Christopher Orr

unread,
Jan 8, 2016, 7:13:53 PM1/8/16
to jenkins...@googlegroups.com
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 jenkins...@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


Reply all
Reply to author
Forward
0 new messages