S3 Copy artifacts with Jenkins pipeline
<p>I'm trying to use the <a href="https://wiki.jenkins-ci.org/display/JENKINS/S3+Plugin" rel="nofollow">S3 plugin</a> in a Jenkins 2.0 pipeline with a Jenkinsfile. Unfortunately, the pipeline syntax helper does not seem to be very complete.</p>

<p>I got the following code :</p>

<pre><code>step([$class: 'S3CopyArtifact', buildSelector: [$class: 'StatusBuildSelector', stable: true], excludeFilter: '', filter: 'deploy/*.zip', flatten: false, optional: false, projectName: 'my/project/with/folders', target: '/my/directory/'])
</code></pre>

<p>Off course this is not sufficient, as credentials and bucket are missing. Additionnaly, this plugin does not seem to behave correctly with the Folders plugin.</p>

<p>Does anyone have hints on this ?</p>