title: Publish artifacts to S3 does not copy the war file
body: <p>I am trying to publish my build artifacts to S3 via jenkins and for that I have done the below</p>
  
  <ol>
  <li><p>Installed S3 plugin</p></li>
  <li><p>Created an Amazon S3 Profile by adding the public key and secret key via Manage Jenkins > Configure System.</p></li>
  <li><p>Selected the "Publish artifacts to S3" post build action</p></li>
  </ol>
  
  <p>I know I have provided the source and destination correctly as the build says file not found when incorrect and creates a destination folder in the S3 bucket initially.</p>
  
  <p>But It does not copy the war file to the required folder in the S3 bucket and there is no error in the console too.</p>
  
  <p>The console output is as below.</p>
  
  <pre><code>Waiting for Jenkins to finish collecting data
  [JENKINS] Archiving /var/lib/jenkins/jobs/&lt;project_name&gt;/workspace/trunk/pom.xml to &lt;path&gt;/1.0.0-SNAPSHOT/&lt;project_name&gt;-1.0.0-SNAPSHOT.pom
  [JENKINS] Archiving /var/lib/jenkins/jobs/&lt;project_name&gt;/workspace/trunk/target/&lt;project_name&gt;.war to &lt;path&gt;/1.0.0-SNAPSHOT/&lt;project_name&gt;-1.0.0-SNAPSHOT.war
  channel stopped
  Publish artifacts to S3 Bucket Using S3 profile: Dev_S3_profile
  Publish artifacts to S3 Bucket bucket=fr-jenkins-deployments/1_dev, file=&lt;project_name&gt;.war region = &lt;region&gt;
  </code></pre>
  
  <p>Can somebody help me on this?</p>