This is my configuration: Enter image description here
And there is console output:
war: [war] Building war: /home/zhaowz/.jenkins/jobs/huamei-farm-web/workspace/build/huamei.war
BUILD SUCCESSFUL Total time: 7 seconds ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception: java.io.IOException: Expecting Ant GLOB pattern, but saw '/home/zhaowz/.jenkins/jobs/huamei-farm-web/workspace/build/huamei.war'. See http://ant.apache.org/manual/Types/fileset.html for syntax at hudson.FilePath.glob(FilePath.java:1738) at hudson.FilePath.access$1700(FilePath.java:190) at hudson.FilePath$32.invoke(FilePath.java:1719) at hudson.FilePath$32.invoke(FilePath.java:1716) at hudson.FilePath.act(FilePath.java:990) at hudson.FilePath.act(FilePath.java:968) at hudson.FilePath.list(FilePath.java:1716) at hudson.FilePath.list(FilePath.java:1701) at hudson.FilePath.list(FilePath.java:1687) 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:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE