jenkins 构建失败

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的目录就可以啦。

posted on 2017-03-01 10:01  张&娟  阅读(921)  评论(0编辑  收藏  举报

导航