我在使用新的OpenShift Jenkins CI服务器时遇到了问题。我按照所有教程告诉我的方式设置所有内容,但是当我尝试构建项目时,我总是得到同样的错误:
Checking out Revision 3e88dcb5295354f9b02ef69ded84c97562c39aad (origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 3e88dcb5295354f9b02ef69ded84c97562c39aad
> git rev-list 3e88dcb5295354f9b02ef69ded84c97562c39aad # timeout=10
Parsing POMs
ERROR: Failed to parse POMs
java.net.BindException: Permission denied
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
at java.net.ServerSocket.bind(ServerSocket.java:376)
at java.net.ServerSocket.bind(ServerSocket.java:330)
at hudson.maven.AbstractMavenProcessFactory$SocketHandler$AcceptorImpl.<init>(AbstractMavenProcessFactory.java:210)
at hudson.maven.AbstractMavenProcessFactory$SocketHandler.call(AbstractMavenProcessFactory.java:196)
at hudson.maven.AbstractMavenProcessFactory$SocketHandler.call(AbstractMavenProcessFactory.java:194)
at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:266)
at hudson.maven.ProcessCache.get(ProcessCache.java:236)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:778)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
at hudson.model.Run.execute(Run.java:1741)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:374)
Finished: FAILURE
我正在使用Maven 3.3.9并确保所有权限都正确无误。这是OpenShift Jenkins的全新安装,唯一的变化是添加JDK 7u79,GitHub插件(包括更新它的所有依赖项)和添加Maven 3.3.9,但是它被拒绝允许POM使其无法被读取。< / p>
我见过这个问题OpenShif jenkins: java.net.BindException: Permission denied 但是,答案中提供的链接已过时且不再存在,只是将我重定向到无效的文档。
如何允许我的Jenkins服务器权限允许它解析POM文件并构建我的代码?
答案 0 :(得分:0)
检查你的jenkins配置: