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

Rebuild Commit

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          splatteredbits Aaron Jensen created issue -
          Hide
          oleg_nenashev 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

          Show
          oleg_nenashev 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 Oleg Nenashev made changes -
          Field Original Value New Value
          Component/s scm-api-plugin [ 18054 ]
          Hide
          splatteredbits 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.

          Show
          splatteredbits 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.
          amitnanaware Amit Nanaware made changes -
          Priority Minor [ 4 ] Major [ 3 ]
          Hide
          amitnanaware Amit Nanaware added a comment -

          Can we have same feature for pipeline job?

           

          Show
          amitnanaware Amit Nanaware added a comment - Can we have same feature for pipeline job?  
          brianjmurrell Brian J Murrell made changes -
          Link This issue duplicates JENKINS-39218 [ JENKINS-39218 ]
          brianjmurrell Brian J Murrell made changes -
          Comment [ This looks like a duplicate of JENKINS-39218. ]
          brianjmurrell Brian J Murrell made changes -
          Link This issue duplicates JENKINS-39218 [ JENKINS-39218 ]

            People

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

              Dates

              Created:
              Updated: