Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22699

Add option to archive artifacts only when successful

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      Some jobs might often fail after a large part of the build output directory (selected for archiving) has been prepared. Unfortunately, there is currently no way to prevent artifact archiving for failed builds.

      This is especially painful when archiving a lot of data, so that it takes quite long and delays the start of the subsequent (hopefully fixed) build.

          [JENKINS-22699] Add option to archive artifacts only when successful

          Daniel Beck added a comment -

          Daniel Beck added a comment - https://github.com/jenkinsci/jenkins/pull/1205

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/src/main/java/hudson/tasks/ArtifactArchiver.java
          core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly
          core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties
          core/src/main/resources/hudson/tasks/Messages.properties
          test/src/test/java/hudson/tasks/ArtifactArchiverTest.java
          http://jenkins-ci.org/commit/jenkins/6df89e3340c2e31a67b83384f5333ee23bd7fcc8
          Log:
          [FIXED JENKINS-22699] Add option to archive only if successful

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/tasks/ArtifactArchiver.java core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties core/src/main/resources/hudson/tasks/Messages.properties test/src/test/java/hudson/tasks/ArtifactArchiverTest.java http://jenkins-ci.org/commit/jenkins/6df89e3340c2e31a67b83384f5333ee23bd7fcc8 Log: [FIXED JENKINS-22699] Add option to archive only if successful

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/src/main/java/hudson/tasks/ArtifactArchiver.java
          core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly
          core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties
          core/src/main/resources/hudson/tasks/Messages.properties
          test/src/test/java/hudson/tasks/ArtifactArchiverTest.java
          http://jenkins-ci.org/commit/jenkins/a71240c88a4bdf1c5adbf5da3acbaf68de84a92c
          Log:
          Merge pull request #1205 from daniel-beck/JENKINS-22699

          [FIXED JENKINS-22699] - JUnit Archiver. Add option to archive only when successful

          Compare: https://github.com/jenkinsci/jenkins/compare/bdad023bd46e...a71240c88a4b

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/tasks/ArtifactArchiver.java core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties core/src/main/resources/hudson/tasks/Messages.properties test/src/test/java/hudson/tasks/ArtifactArchiverTest.java http://jenkins-ci.org/commit/jenkins/a71240c88a4bdf1c5adbf5da3acbaf68de84a92c Log: Merge pull request #1205 from daniel-beck/ JENKINS-22699 [FIXED JENKINS-22699] - JUnit Archiver. Add option to archive only when successful Compare: https://github.com/jenkinsci/jenkins/compare/bdad023bd46e...a71240c88a4b

          dogfood added a comment -

          Integrated in jenkins_main_trunk #3426
          [FIXED JENKINS-22699] Add option to archive only if successful (Revision 6df89e3340c2e31a67b83384f5333ee23bd7fcc8)

          Result = SUCCESS
          daniel-beck : 6df89e3340c2e31a67b83384f5333ee23bd7fcc8
          Files :

          • core/src/main/java/hudson/tasks/ArtifactArchiver.java
          • core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties
          • test/src/test/java/hudson/tasks/ArtifactArchiverTest.java
          • core/src/main/resources/hudson/tasks/Messages.properties
          • core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly

          dogfood added a comment - Integrated in jenkins_main_trunk #3426 [FIXED JENKINS-22699] Add option to archive only if successful (Revision 6df89e3340c2e31a67b83384f5333ee23bd7fcc8) Result = SUCCESS daniel-beck : 6df89e3340c2e31a67b83384f5333ee23bd7fcc8 Files : core/src/main/java/hudson/tasks/ArtifactArchiver.java core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties test/src/test/java/hudson/tasks/ArtifactArchiverTest.java core/src/main/resources/hudson/tasks/Messages.properties core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly

            danielbeck Daniel Beck
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: