Jenkins和docker插件:启动容器的问题

时间:2015-05-14 15:49:09

标签: jenkins continuous-integration docker containers

我已经安装了docker-plugin,并在docker插件指令中配置它,并使用evarga / jenkins-slave图像和自定义图像(并尝试使用sshkeys和用户名和密码凭据),但我无法运行作业。对docker cloud的连接测试有效,但是当我启动jenkins工作时,它总是失败,如下所示。

Building in workspace /var/lib/jenkins/workspace/docker_test
ERROR: Build step failed with exception
java.lang.NullPointerException
    at com.nirima.jenkins.plugins.docker.builder.DockerBuilderControlOptionProvisionAndStart.execute(DockerBuilderControlOptionProvisionAndStart.java:32)
    at com.nirima.jenkins.plugins.docker.builder.DockerBuilderControl.perform(DockerBuilderControl.java:59)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    at hudson.model.Build$BuildExecution.build(Build.java:205)
    at hudson.model.Build$BuildExecution.doRun(Build.java:162)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
    at hudson.model.Run.execute(Run.java:1744)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:374)
Build step 'Start/Stop Docker Containers' marked build as failure
Finished: FAILURE

我有Docker版本:

    Client version: 1.6.0
    Client API version: 1.18
    Go version (client): go1.4.2
    Git commit (client): 4749651
    OS/Arch (client): linux/amd64

和Docker插件0.9.0-rc1。

有关如何使用evarga / jenkins-slave图像进行此工作的所有提示和说明都很受欢迎:)

0 个答案:

没有答案