开发者社区> 问答> 正文

在jenkins上部署maven项目报错如下,该怎么解决?报错

 
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.254s [INFO] Finished at: Tue Mar 14 04:02:49 CST 2017
[INFO] Final Memory: 8M/20M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project helloworld: Error creating properties files for forking; nested exception is java.io.IOException: Permission denied -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[JENKINS] Archiving /var/lib/jenkins/workspace/Login/helloworld/pom.xml to helloworld/helloworld/1.0-SNAPSHOT/helloworld-1.0-SNAPSHOT.pom
channel stopped
Finished: FAILURE

展开
收起
爱吃鱼的程序员 2020-06-08 16:09:50 908 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    看你log里有,

    java.io.IOException:Permissiondenied

    是不是Jenkins服务启动的用户没有权限写造成的,你检查一下目录权限吧.

    项目的目录所有者就是jenkins服务启动的用户jenkins
    2020-06-08 16:10:06
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Alibaba Cloud CodePipeline 基于Jenkins的CI / CD探索之路 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像