Detailed parameters:
First item (war/ear files): Is the relative path to the war package relative to the workspace path, which is the relative path of the war package in the workspace. If my maven execution completes, the project will be built in the target directory of the workspace. War, so here's my path to write the Target\ project. War.
Second item: (Content Path): Tomcat's publishing path, which uses localhost/(the name of the content path setting) to access the project.
The last item is whether the deploy on failure is posted to tomcat when an error occurs.
The rest is not much to say. But pay attention. To give manager-gui,manager-script,manager-jmx,manager-status these permissions to the user in the Tomcat-users, the following error will be reported:
Error:publisher Hudson.plugins.deploy.DeployPublisher aborted due to exception org.codehaus.cargo.container.ContainerException:Failed to redeploy [C:\Users\ Hope Geng \.jenkins\jobs\ One-on-one \workspace\ Target\ifservice.war] at Org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy ( abstracttomcatmanagerdeployer.java:195) at Hudson.plugins.deploy.CargoContainerAdapter.deploy ( cargocontaineradapter.java:64) at Hudson.plugins.deploy.cargocontaineradapter$1.invoke ( CARGOCONTAINERADAPTER.JAVA:90) at Hudson.plugins.deploy.cargocontaineradapter$1.invoke ( cargocontaineradapter.java:77) at Hudson. Filepath.act (filepath.java:912) at Hudson. Filepath.act (filepath.java:885) at Hudson.plugins.deploy.CargoContainerAdapter.redeploy ( cargocontaineradapter.java:77) at Hudson.plugins.deploy.DeployPublisher.perform (deploypublisher.java:47) at Hudson.tasks.buildstepmonitor$3.perform (buildstepmonitor.java:45) at hudson.model.abstractbuild$ Abstractbuildexecution.perform (Abstractbuild.java: 781) at Hudson.model.abstractbuild$abstractbuildexecution.performallbuildsteps (abstractbuild.java:753) at Hudson.maven.mavenmodulesetbuild$mavenmodulesetbuildexecution.post2 (mavenmodulesetbuild.java:1020) at Hudson.model.abstractbuild$abstractbuildexecution.post (abstractbuild.java:706) at Hudson.model.Run.execute ( run.java:1690) at Hudson.maven.MavenModuleSetBuild.run (mavenmodulesetbuild.java:509) at Hudson.model.ResourceController.execute (resourcecontroller.java:88) at Hudson.model.Executor.run (Executor.java
: caused By:java.io.IOException:Server returned HTTP response code:403 for url:http://localhost//manager/text/list At Sun.net.www.protocol.http.HttpURLConnection.getInputStream (httpurlconnection.java:1626) at Org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke (tomcatmanager.java:504) at Org.codehaus.cargo.container.tomcat.internal.TomcatManager.list (tomcatmanager.java:622) at Org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus (TOMCAtmanager.java:635) at Org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy ( abstracttomcatmanagerdeployer.java:176) ... Java.io.IOException:Server returned HTTP response code:403 for url:http://localhost//manager/text/list at Sun. Net.www.protocol.http.HttpURLConnection.getInputStream (httpurlconnection.java:1626) at Org.codehaus.cargo.container.tomcat.internal.TomcatManager.invoke (tomcatmanager.java:504) at Org.codehaus.cargo.container.tomcat.internal.TomcatManager.list (tomcatmanager.java:622) at Org.codehaus.cargo.container.tomcat.internal.TomcatManager.getStatus (tomcatmanager.java:635) at Org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy ( abstracttomcatmanagerdeployer.java:176) at Hudson.plugins.deploy.CargoContainerAdapter.deploy ( cargocontaineradapter.java:64) at Hudson.plugins.deploy.cargocontaineradapter$1.invoke ( CARGOCONTAINERADAPTER.JAVA:90) at Hudson.plugins.deploy.cargocontaineradapter$1.invoke (cargocontaineradapter.java:77) at Hudson. Filepath.act (filepath.java:912) at Hudson. Filepath.act (filepath.java:885) at Hudson.plugins.deploy.CargoContainerAdapter.redeploy ( cargocontaineradapter.java:77) at Hudson.plugins.deploy.DeployPublisher.perform (deploypublisher.java:47) at Hudson.tasks.buildstepmonitor$3.perform (buildstepmonitor.java:45) at hudson.model.abstractbuild$ Abstractbuildexecution.perform (abstractbuild.java:781) at hudson.model.abstractbuild$ Abstractbuildexecution.performallbuildsteps (abstractbuild.java:753) at hudson.maven.mavenmodulesetbuild$ Mavenmodulesetbuildexecution.post2 (mavenmodulesetbuild.java:1020) at hudson.model.abstractbuild$ Abstractbuildexecution.post (abstractbuild.java:706) at Hudson.model.Run.execute (run.java:1690) at Hudson.maven.MavenModuleSetBuild.run (mavenmodulesetbuild.java:509) at Hudson.model.ResourceController.execute ( resourcecontroller.java:88) at Hudson.model.Executor.run (executor.java:230) finished:failure