gpt4 book ai didi

maven - OpenShift jenkins : java.net.BindException:权限被拒绝

转载 作者:行者123 更新时间:2023-12-02 09:10:45 32 4
gpt4 key购买 nike

我已经在 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 有关,但如何解决这个问题?

最佳答案

我认为您遇到了与此处描述的相同的问题 - https://www.openshift.com/forums/openshift/jenkins-failed-to-build-maven-project

没有现成的简单解决办法。问题是当前的 Jenkins 代码无法让您向流程工厂提供 OPENSHIFT_INTERNAL_IP。上面帖子中提到的代码看起来很合理。它基本上修改了 Jenkins 以允许系统变量的设置传入 OPENSHIFT_INTERNAL_IP。最重要的是,现在您需要 Jenkins 的自定义构建版本。

关于maven - OpenShift jenkins : java.net.BindException:权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22884325/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com