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.

          [JENKINS-12522] Deploy artifacts for failed builds, too

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher.java
          src/main/resources/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher/config.jelly
          http://jenkins-ci.org/commit/artifactdeployer-plugin/f6308fac57a39d2e82a86380d9666c2d3dbe6f4e
          Log:
          Fix JENKINS-12522

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher.java src/main/resources/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher/config.jelly http://jenkins-ci.org/commit/artifactdeployer-plugin/f6308fac57a39d2e82a86380d9666c2d3dbe6f4e Log: Fix JENKINS-12522

            gbois Gregory Boissinot
            bruce Dirk Kuypers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: