1、从本地上上传开发代码到git上,用Jenkins构建时报错(注:之前的测试版本,jenkins是可以正常构建的)

Started by user admin

Building in workspace /data2/jenkins/jobs/RMB-API-JAVA/workspace

> git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

> git config remote.origin.url http://git.webank.io/inf/rmb_jenkins.git # timeout=10

Fetching upstream changes from http://git.webank.io/inf/rmb_jenkins.git

> git --version # timeout=10

using .gitcredentials to set credentials

> git config --local credential.helper store --file=/data2/apache-tomcat-8.0.18-jenkins/temp/git5088323924443441311.credentials # timeout=10

> git -c core.askpass=true fetch --tags --progress http://git.webank.io/inf/rmb_jenkins.git +refs/heads/*:refs/remotes/origin/*

> git config --local --remove-section credential # timeout=10

> git rev-parse origin/master^{commit} # timeout=10

Checking out Revision c3cbbaa50e70678013fd05095ece38f5084c750e (origin/master)

> git config core.sparsecheckout # timeout=10

> git checkout -f c3cbbaa50e70678013fd05095ece38f5084c750e

> git rev-list c3cbbaa50e70678013fd05095ece38f5084c750e # timeout=10

Parsing POMs

FATAL: null

java.lang.StackOverflowError

at java.lang.ReflectiveOperationException.(ReflectiveOperationException.java:89)

at java.lang.reflect.InvocationTargetException.(InvocationTargetException.java:72)

at sun.reflect.GeneratedMethodAccessor2485.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)

at com.sun.proxy.$Proxy69.lookup(Unknown Source)

at sun.reflect.GeneratedMethodAccessor2485.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

解决方法:百度了一圈,在jenkins运行的代码工程:mvn clean 一下,重新构建就成功了

找jenkins运行的代码工程命令:find / -type d -name "workspace"    找workspace的目录就可以啦。

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐