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

iterating over RunList throws java.util.NoSuchElementException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None

      The following code scripted pipeline code

       

      RunList builds = new RunList(script.currentBuild.rawBuild.getParent()).limit(20)
      for(run in builds) {
      
      }   
       
      

       

      Throws a java.util.NoSuchElementException

      Situation: I have a job with 12 runs, 2 runs are deleted: run 1 and run 6

      For some reason jenkins thinks run 1 still exists while building the RunList iterator. I can find no trace of run 1 in the $JENKINS_HOME/jobs/.. folder, so no idea why this is happening

            Unassigned Unassigned
            roel0 roel postelmans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: