我正面临这个问题,并尽了一切努力,但没有运气。有人可以试一试吗?
10:31:40由用户Ds发起 10:31:40在工作空间C:\ Jenkins \ workspace \ Deploy_Job中进行构建 10:31:40从“ Packer_Servlet_Project”内部版本号7复制了1个工件 10:31:41将C:\ Jenkins \ workspace \ Deploy_Job \ target \ java-tomcat-maven-example.war部署到具有上下文D:\ Self-Projects \ apache-tomcat-8.5.33的容器Tomcat 8.x Remote 10:31:41错误:构建步骤失败,出现异常 10:31:41 org.codehaus.cargo.container.ContainerException:无法重新部署[C:\ Jenkins \ workspace \ Deploy_Job \ target \ java-tomcat-maven-example.war] 10:31:41 at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:192) hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:77)10:31:41 10:31:41 at hudson.plugins.deploy.CargoContainerAdapter $ DeployCallable.invoke(CargoContainerAdapter.java:147) 10:31:41 at hudson.plugins.deploy.CargoContainerAdapter $ DeployCallable.invoke(CargoContainerAdapter.java:117) Hudson.FilePath.act(FilePath.java:1020)10:31:41 Hudson.FilePath.act(FilePath.java:998)10:31:41 hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:114)10:31:41 在hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeploy 10:31:41(PasswordProtectedAdapterCargo.java:93) hudson.plugins.deploy.DeployPublisher.perform 10:31:41(DeployPublisher.java:64) 10:31:41 at hudson.tasks.BuildStepMonitor $ 3.perform(BuildStepMonitor.java:45) 10:31:41 at hudson.model.AbstractBuild $ AbstractBuildExecution.perform(AbstractBuild.java:744) 10:31:41 at hudson.model.AbstractBuild $ AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) 在hudson.model.Build $ BuildExecution.post2 10:31:41(Build.java:186) 10:31:41 at hudson.model.AbstractBuild $ AbstractBuildExecution.post(AbstractBuild.java:635) 在hudson.model.Run.execute(Run.java:1752)10:31:41 在hudson.model.FreeStyleBuild.run 10:31:41(FreeStyleBuild.java:43) 在hudson.model.ResourceController.execute(ResourceController.java:97)10:31:41 10:31:41 at hudson.model.Executor.run(Executor.java:429) 10:31:41原因:java.io.FileNotFoundException:http://localhost:8070/manager/text/list 在sun.net.www.protocol.http.HttpURLConnection.getInputStream0 10:31:41(未知源) 在sun.net.www.protocol.http.HttpURLConnection.getInputStream上10:31:41(未知源) org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke 10:31:41(TomcatManager.java:571) org.codehaus.cargo.container.tomcat.internal.TomcatManager.list 10:31:41(TomcatManager.java:876) org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:889)10:31:41 10:31:41 at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:173) 10:31:41 ...还有17 10:31:41 java.io.FileNotFoundException:http://localhost:8070/manager/text/list 在sun.net.www.protocol.http.HttpURLConnection.getInputStream0 10:31:41(未知源) 在sun.net.www.protocol.http.HttpURLConnection.getInputStream上10:31:41(未知源) org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke 10:31:41(TomcatManager.java:571) org.codehaus.cargo.container.tomcat.internal.TomcatManager.list 10:31:41(TomcatManager.java:876) org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus(TomcatManager.java:889)10:31:41 10:31:41 at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:173) hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:77)10:31:41 10:31:41 at hudson.plugins.deploy.CargoContainerAdapter $ DeployCallable.invoke(CargoContainerAdapter.java:147) 10:31:41 at hudson.plugins.deploy.CargoContainerAdapter $ DeployCallable.invoke(CargoContainerAdapter.java:117) Hudson.FilePath.act(FilePath.java:1020)10:31:41 Hudson.FilePath.act(FilePath.java:998)10:31:41 hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:114)10:31:41 在hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeploy 10:31:41(PasswordProtectedAdapterCargo.java:93) hudson.plugins.deploy.DeployPublisher.perform 10:31:41(DeployPublisher.java:64) 10:31:41 at hudson.tasks.BuildStepMonitor $ 3.perform(BuildStepMonitor.java:45) 10:31:41 at hudson.model.AbstractBuild $ AbstractBuildExecution.perform(AbstractBuild.java:744) 10:31:41 at hudson.model.AbstractBuild $ AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) 在hudson.model.Build $ BuildExecution.post2 10:31:41(Build.java:186) 10:31:41 at hudson.model.AbstractBuild $ AbstractBuildExecution.post(AbstractBuild.java:635) 在hudson.model.Run.execute(Run.java:1752)10:31:41 在hudson.model.FreeStyleBuild.run 10:31:41(FreeStyleBuild.java:43) 在hudson.model.ResourceController.execute(ResourceController.java:97)10:31:41 10:31:41 at hudson.model.Executor.run(Executor.java:429) 10:31:41构建步骤“将战争/耳朵部署到集装箱”将构建标记为失败 10:31:41完成:失败