Deploy war/ear to a container’ aborted due to exception: java.lang.InterruptedException
在Jenkins自动构建项目时报错错误详情:ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception:java.lang.InterruptedException: [DeployPublisher][WARN] No wars found. Deploy aborted. %nat hudson.plugins.de
·
在Jenkins自动构建项目时报错
错误详情:
ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception:
java.lang.InterruptedException: [DeployPublisher][WARN] No wars found. Deploy aborted. %n
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:107)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1841)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
错误原因:
在配置自动部署
Post-build Actions
时:traget/xxx.war 路径不是直接路径,也就是说在把我们的war包推送到容器的时候找不到这个war包,发生异常,可能是因为从git上拉取下来的项目多了一级目录。
解决方式
或者直接写 **/*.war
这样就可以解决项目有多级目录的部署问题了!!!
ps:项目有多级目录时 在配置maven后执行mvn命令时也会报错!!!详细信息可见 jenkins配置maven时报错找不到pom文件
更多推荐
已为社区贡献2条内容
所有评论(0)