title: Jenkins Deploy Plugin: syntax for WAR/EAR path using a parameter
body: <p>I have Jenkins 1.602 with Deploy Plugin 1.10, remotely deploying to Tomcat 6.0.29. A single Jenkins job does the build (using Maven) and the remote deployment (Deploy Plugin 1.10).</p>
  
  <p>The Jenkins job will deploy fine when using **/*.war in the 'Deploy war/ear to a container -> WAR/EAR files' field, but I'm not able to use one of the parameters from the (parameterised) Jenkins job. I've tried various fileset selectors however can't get it to work. There are no error messages that I can see, it seems to just miss the deployment step altogether - I assume because it's not finding a file.</p>
  
  <p>I'm wondering if I have the fileset selector syntax incorrect (I don't think so as I've tried multiple combinations), or if this is not possible with this plugin.</p>
  
  <p>The 'WAR/EAR files' goes off the Jenkins job's workspace folder, so **/*.war is getting, and deploying, the following files:</p>
  
  <pre><code>../workspace/parameter1/target/*.war
  ../workspace/parameter2/target/*.war
  </code></pre>
  
  <p>I want to specify which of these folders I'm getting the .war file from so have tried the following without success:</p>
  
  <pre><code>${parameter}/target/*.war
  
  /${parameter}/target/*.war
  
  &lt;fileset dir="${parameter}" casesensitive="no"&gt;&lt;include name="/target/*.war"/&gt;&lt;/fileset&gt;
  
  &lt;fileset dir="${parameter}" includes="/target/*.war"&gt;&lt;depth max="1"/&gt;&lt;/fileset&gt;
  </code></pre>
  
  <p>Plus some other fileset combinations but basically more of the same.</p>
  
  <p>Thanks</p>