Hi,
I'm trying to use the deploy plugin to deploy to a Tomcat 7.0.55 server.
I'm trying to use versioned WAR files (appName##number.war).
I can create the WAR file easily by passing BUILD_NUMBER in on the command line
and then using a property within finalName.
The first problem came when specifying the WAR file for the deploy plugin. Using
appName##${BUILD_NUMBER}.war caused the underlying ant task to fail.
I "solved" that by using **/*.war.
Now Jenkins finds and attempts to deploy the WAR file only to get:
ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception
org.codehaus.cargo.container.ContainerException: Failed to redeploy [/home/tcadmin/.jenkins/jobs/appName-Deploy/workspace/target/appName##9.war]
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:189)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:73)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)
at hudson.FilePath.act(FilePath.java:922)
at hudson.FilePath.act(FilePath.java:895)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:103)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:61)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
at hudson.model.Run.execute(Run.java:1757)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)
Caused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: FAIL - Unknown command /manager/text/list
I can successfully do an
http://thor.mdeggers.org:8080/manager/text/list from the command line
using curl with the same authentication parameters.
$ curl --anyauth -u redacted:redacted
http://thor.mdeggers.org:8080/manager/text/list
OK - Listed applications for virtual host thor
/:running:0:ROOT
/manager:running:4:/home/tcadmin/Apache/apache-tomcat-7.0.55/webapps/manager
/LeakRS:running:0:LeakRS
/probe:running:0:probe
/JSPSamples:running:0:JSPSamples
/nexus:running:0:nexus
/calcs:running:0:calcs
What am I doing wrong?
Mark
/mde/