-
Improvement
-
Resolution: Unresolved
-
Major
-
None
Currently the S3 publish step runs regardless of build success or failure. It would be very useful to choose a build result condition, per source/destination pairing, under which the files will be published. The "Build other projects" post build action would be a good template for this. It offers three conditions - "Trigger only if build succeeds", "Trigger even if the build is unstable", and "Trigger even if the build fails".
This is an old ticket, but putting this here in case it helps:
There exists another Jenkins plugin called "Flexible Publish Plugin": https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin
The Flexible Publish plugin adds a Post-build Action called "Flexible publish." You can set the conditional to "Current Build Status" is "Success" for both "Worst" and "Best", and then specify the action as the "Publish artifacts to S3 bucket" provided by this plugin.