我已经在openshift上设置了Jenkins,制作了一个hello world项目,并尝试在openshift中通过Jenkins打包它。但我得到了下一个错误:
Commencing build of Revision 2062de71e567e2f62a57dd3a1f9d660950b6482d (origin/master)
Checking out Revision 2062de71e567e2f62a57dd3a1f9d660950b6482d (origin/master)
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:165)
at hudson.maven.AbstractMavenProcessFactory$SocketHandler.call(AbstractMavenProcessFactory.java:151)
at hudson.maven.AbstractMavenProcessFactory$SocketHandler.call(AbstractMavenProcessFactory.java:149)
at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:207)
at hudson.maven.ProcessCache.get(ProcessCache.java:231)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:672)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584)
at hudson.model.Run.execute(Run.java:1575)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
Finished: FAILURE
我认为它与OPENSHIFT_INTERNAL_IP相关,但如何解决?
答案 0 :(得分:2)
我认为您遇到了与此处所述相同的问题 - https://www.openshift.com/forums/openshift/jenkins-failed-to-build-maven-project
没有开箱即用的简单工作。问题是当前的Jenkins代码不允许您向流程工厂提供OPENSHIFT_INTERNAL_IP。上面帖子中提到的代码看起来很合理。它基本上修改了Jenkins以允许设置系统变量以传递OPENSHIFT_INTERNAL_IP。最重要的是,现在你需要一个Jenkins的自定义构建版本。
答案 1 :(得分:2)
该链接不再有效。问题在这里公开。