• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • core, scm-api-plugin
    • None

      We need to be able to rebuild commits/builds.

      * On the build results page, one of the options in the left menu should be "Rebuild Commit" or "Try Again" or "Run Again". When I click that button, that build should re-run on the same commit and branch of the original build. Build number would still increment.

      • When I'm on a project's page, with the build history on the left, when I click the arrow to the right of a build name/number, and the action menu pops up, the same "Rebuild Commit"/"Try Again"/"Run Again" option should be available.

      We have one build per repository. Builds trigger whenever a change is pushed to any branch in a repository (e.g. our branch specifier is "origin/**"). When a build fails for a reason that has nothing to do with code in the repository (e.g. disk fills up, some external resource is temporarily down, etc.), the only way to re-build that branch is to make some change to the repository, usually adding/removing some whitespace. Most other build servers I've used (TeamCity and Appveyor) let you rebuild a commit.

      We do not use Jenkins pipelines, nor have any plans to do so.

          [JENKINS-49540] Rebuild Commit

          Oleg Nenashev added a comment -

          You can achieve that by using https://wiki.jenkins.io/display/JENKINS/Rebuild+Plugin and a commit parameter.
          It could be also a feature request to the SCM API plugin, but I doubt it makes sense to do it in the core

          Oleg Nenashev added a comment - You can achieve that by using https://wiki.jenkins.io/display/JENKINS/Rebuild+Plugin and a commit parameter. It could be also a feature request to the SCM API plugin, but I doubt it makes sense to do it in the core

          Aaron Jensen added a comment -

          Can you point me to documentation on how? We tried using that plugin but it is only used to rebuild paramarerized builds without entering the parameters again. The branch to build on isn’t a parameter (nor can it be) on any of our builds.

          Aaron Jensen added a comment - Can you point me to documentation on how? We tried using that plugin but it is only used to rebuild paramarerized builds without entering the parameters again. The branch to build on isn’t a parameter (nor can it be) on any of our builds.

          Amit Nanaware added a comment -

          Can we have same feature for pipeline job?

           

          Amit Nanaware added a comment - Can we have same feature for pipeline job?  

            Unassigned Unassigned
            splatteredbits Aaron Jensen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: