jenkins构建时报错

来源:2-2 GitLab工作流程

慕标4146058

2018-08-29

jenkins构建时报错

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project webdemo: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: basedir /root/.jenkins/workspace/dcloudjibei/webdemo/src/main/webapp/WEB-INF/web.xml is not a directory -> [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/PluginExecutionException

写回答

1回答

一路向北

2018-08-29

感谢这位同学的关注, 建议构建时打开 -X去debug一下具体报错细节.

从当前报错信息上看你的basedir这个变量应该指向一个目录, 而不是一个具体文件路径, 查看一下你的${basedir}是否配置有问题.

0
1
慕标4146058
能否远程指导一下啊
2018-08-29
共1条回复

Jenkins+Ansible+Gitlab-三剑合璧掌握自动化部署

整合三大工具解决自动化部署&持续交付问题

1290 学习 · 319 问题

查看课程