Jenkins部署插件失败 [英] Jenkins Deploy Plugin failing

查看:574
本文介绍了Jenkins部署插件失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用Jenkins部署战争时,Jenkins作业日志中出现以下异常.有谁知道为什么会这样吗? 我正在尝试部署到tomcat8.我使用以下配置了部署程序插件:

When I tried to deploy war from Jenkins using I am getting the following exception in Jenkins job log. Does anyone has any idea why this is happening? I am trying to deploy to tomcat 8. I configured deployer plugin using the following:

经理用户名和密码
Tomcat URL:http://主机名:9080/

manager username and password
Tomcat URL: http://hostname:9080/

ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception
java.io.IOException: Expecting Ant GLOB pattern, but saw '/var/lib/jenkins/.m2/repository/com/wcm/wcm-admin/1.0/wcm-admin-1.0.war'. See http://ant.apache.org/manual/Types/fileset.html for syntax
    at hudson.FilePath.glob(FilePath.java:1734)
    at hudson.FilePath.access$1700(FilePath.java:191)
    at hudson.FilePath$32.invoke(FilePath.java:1715)
    at hudson.FilePath$32.invoke(FilePath.java:1712)
    at hudson.FilePath.act(FilePath.java:989)
    at hudson.FilePath.act(FilePath.java:967)
    at hudson.FilePath.list(FilePath.java:1712)
    at hudson.FilePath.list(FilePath.java:1697)
    at hudson.FilePath.list(FilePath.java:1683)
    at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:59)
    at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
    at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
    at hudson.model.Run.execute(Run.java:1743)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
    at hudson.model.ResourceController.execute(ResourceController.java:89)
    at hudson.model.Executor.run(Executor.java:240)
Finished: FAILURE

推荐答案

我将war文件的完整路径用作"WAR/EAR files"的值.当我将值设置为"**/*.war"时,它起作用了.

I user the full path of war file as the value of "WAR/EAR files". When I set the value as "**/*.war" it worked.

这篇关于Jenkins部署插件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆