如何使用CloudBees Docker自定义构建环境插件?

时间:2015-12-10 18:30:04

标签: maven jenkins docker jenkins-plugins cloudbees

我试着找一些文档,但我找不到它。

我只需要在容器内构建我的maven项目。它给了很多权限错误。

我在"来自存储库"的拉码头图像中添加了一个maven图像。然后我配置git url。当我尝试构建它时会显示此错误。

First time build. Skipping changelog.
Pull Docker image maven from repository ...
$ docker pull maven
Failed to pull Docker image maven
FATAL: Failed to pull Docker image maven
java.io.IOException: Failed to pull Docker image maven
    at com.cloudbees.jenkins.plugins.docker_build_env.PullDockerImageSelector.prepareDockerImage(PullDockerImageSelector.java:34)
    at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:167)
    at hudson.model.Build$BuildExecution.doRun(Build.java:156)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    at hudson.model.Run.execute(Run.java:1738)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE

0 个答案:

没有答案