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

Discard Old Builds plugin throws java.lang.UnsupportedOperationException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Ubuntu 12.04.1 64
      Jenkins 1.510
      Discard Old Build plugin 1.02
    • Similar Issues:

      Description

      Split as new bug from https://issues.jenkins-ci.org/browse/JENKINS-16979

      Also reported here: http://stackoverflow.com/questions/15268736/error-publisher-org-jenkinsci-plugins-discardbuild-discardbuildpublisher-aborte

      If a post-build action to 'Discard Old Builds' is added, this always results:

      Archiving artifacts
      Discard old builds...
      ERROR: Publisher org.jenkinsci.plugins.discardbuild.DiscardBuildPublisher aborted due to exception
      java.lang.UnsupportedOperationException
      at java.util.AbstractList.add(AbstractList.java:148)
      at java.util.AbstractList.add(AbstractList.java:108)
      at org.jenkinsci.plugins.discardbuild.DiscardBuildPublisher.perform(DiscardBuildPublisher.java:148)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:798)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:770)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:720)
      at hudson.model.Run.execute(Run.java:1600)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)

      and the build fails.

        Attachments

          Issue Links

            Activity

            Show
            jglick Jesse Glick added a comment - Seems to be fixed in 1.03 by https://github.com/jenkinsci/discard-old-build-plugin/commit/04aab74b161919db790ccee4f7ff0b897107663c I guess.
            Hide
            nkns165 nkns165 added a comment -

            Actually I have fixed it last week, but the latest version is not properly shown in the update center because of bad version no update (1.02 -> 1.0.3, which looks like version down).

            I have released version 1.03 that will solve the problem.

            Show
            nkns165 nkns165 added a comment - Actually I have fixed it last week, but the latest version is not properly shown in the update center because of bad version no update (1.02 -> 1.0.3, which looks like version down). I have released version 1.03 that will solve the problem.

              People

              • Assignee:
                nkns165 nkns165
                Reporter:
                bedge Bruce Edge
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: