• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • copyartifact-plugin
    • None

      Would be useful to be able to select the "Last Completed Build" permalink. I have a job where I want to get the artifacts from it whether it is unstable or stable, but this job can also run twice in quick succession. If I use "Last Build", it just tries to get the artifacts from the newly running instance of the job rather than the one that just completed.

          [JENKINS-16476] Add "Last Completed Build" to permalink list

          Stephen Morrison created issue -

          Jesse Glick added a comment -

          lastSuccessfulBuild is what you want in this case.

          Jesse Glick added a comment - lastSuccessfulBuild is what you want in this case.

          James Howe added a comment -

          lastSuccessfulBuild only counts stable builds, not unstable

          James Howe added a comment - lastSuccessfulBuild only counts stable builds, not unstable
          James Howe made changes -
          Link New: This issue duplicates JENKINS-16108 [ JENKINS-16108 ]
          Bill Chen made changes -
          Assignee New: Bill Chen [ intelchen ]

          Jesse Glick added a comment - - edited

          No, lastSuccessfulBuild (available as a permalink) includes unstable builds. Job.getLastCompletedBuild would include failed builds but not running builds.

          Jesse Glick added a comment - - edited No, lastSuccessfulBuild (available as a permalink) includes unstable builds. Job.getLastCompletedBuild would include failed builds but not running builds.

          Roland Clobus added a comment -

          Add 'lastCompletedBuild' as an accepted argument to the SpecificBuildSelector.

          Roland Clobus added a comment - Add 'lastCompletedBuild' as an accepted argument to the SpecificBuildSelector.
          Roland Clobus made changes -

          Roland Clobus added a comment -

          Add 'lastCompletedBuild' as a valid option to SpecificBuildSelector

          Roland Clobus added a comment - Add 'lastCompletedBuild' as a valid option to SpecificBuildSelector
          Roland Clobus made changes -

            ikedam ikedam
            smorriso Stephen Morrison
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: