[
https://issues.jenkins-ci.org/browse/JENKINS-12522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
gbois resolved JENKINS-12522.
-----------------------------
Resolution: Fixed
> Deploy artifacts for failed builds, too
> ---------------------------------------
>
> Key: JENKINS-12522
> URL: https://issues.jenkins-ci.org/browse/JENKINS-12522
> Project: Jenkins
> Issue Type: Improvement
> Components: artifactdeployer
> Affects Versions: current
> Reporter: Dirk Kuypers
> Assignee: gbois
> Labels: deployment
>
> I took the description below from the plugin Wiki because I have a similar
> problem. I need to archive all unit test logs for our QA after running a unit
> test project even if some tests fail without cluttering my Jenkins with
> hundreds of build logs.
> Original problem from the Wiki:
> My Jenkins job has the following build steps:
> 1. Execute Windows batch command (a set of simple commands terminated by an
> 'exit X' statement, where X can be zero for successful builds and non-zero
> for failed builds)
> 2. Deploy artifacts from workspace to remote directories
> If the exit statement at the end of my batch commands is non-zero then the
> artifacts are NOT deployed. I would like to be able to deploy artifacts
> following a failed build because although the build failed there will be
> build log files indicating the reason for failure as well as partial
> artifacts.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira