• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • rebuild-plugin
    • None

      If you load the page for a job, the rebuild last link points to specific, which is the last build at the time of page load. However, if the page is left open, other builds can be run in that time. This invalidates the link, since it is now no longer pointing to the last build.

      The Rebuild Last button should point to /

      {JOB_NAME}/lastBuild/rebuild rather than /{JOB_NAME}

      /

      {JOB_ID}

      /rebuild. This ensures it will always rebuild the last build.

      I will submit a pull request, but after a quick glance, it looks like the change needs to happen in the RebuildLastCompletedBuildAction.getUrlName() method.

          [JENKINS-22836] Rebuild Last link out of date

          Bowse Cardoc added a comment -

          Bowse Cardoc added a comment - Pull request: https://github.com/jenkinsci/rebuild-plugin/pull/27

          Code changed in jenkins
          User: Robert Sandell
          Path:
          src/main/java/com/sonyericsson/rebuild/RebuildLastCompletedBuildAction.java
          src/test/java/com/sonyericsson/rebuild/RebuildValidatorTest.java
          http://jenkins-ci.org/commit/rebuild-plugin/93a3385991f827cb7d775a525b4c097385d026e2
          Log:
          Merge pull request #27 from andresoderlind/ISSUE-J-22836

          JENKINS-22836 Rebuild Last link out of date

          Compare: https://github.com/jenkinsci/rebuild-plugin/compare/6465b86cd755...93a3385991f8

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Robert Sandell Path: src/main/java/com/sonyericsson/rebuild/RebuildLastCompletedBuildAction.java src/test/java/com/sonyericsson/rebuild/RebuildValidatorTest.java http://jenkins-ci.org/commit/rebuild-plugin/93a3385991f827cb7d775a525b4c097385d026e2 Log: Merge pull request #27 from andresoderlind/ISSUE-J-22836 JENKINS-22836 Rebuild Last link out of date Compare: https://github.com/jenkinsci/rebuild-plugin/compare/6465b86cd755...93a3385991f8

          Rino added a comment -

          Merged in trunk

          Rino added a comment - Merged in trunk

            Unassigned Unassigned
            porterhouse91 porterhouse91
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: