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

Rebuild plugin records incorrect "Started by user"

    Details

    • Similar Issues:

      Description

      When rebuilding, the new build has the "Started by user" populated with the value from the source build, not the details of the user who requested the rebuild.

      I.e.:

      1. User Alice triggers Build 1 
      2. Build 1 completes and states "Started by user Alice".
      3. User Bob opens Build 1 and clicks "Rebuild", triggering Build 2.
      4. Build 2 completes and states "Started by user Alice" but should have stated "Started by user Bob".

      This creates confusion for accountability and auditing.

      Reverting to Rebuilder plugin 1.29 fixes the issue.

      Two other users have also reported the issue here on the PR for the release which introduced the bug:

      https://github.com/jenkinsci/rebuild-plugin/pull/56#issuecomment-478868354

       

        Attachments

          Activity

          jstangroome Jason Stangroome created issue -
          jstangroome Jason Stangroome made changes -
          Field Original Value New Value
          Description When rebuilding, the new build has the "Started by user" populated with the value from the source build, not the details of the user who requested the rebuild.

          I.e.:
           # User Alice triggers Build 1 
           # Build 1 completes and states "Started by user Alice".
           # User Bob opens Build 1 and clicks "Rebuild", triggering Build 2.
           # Build 2 completes and states "Started by user Alice" but should have stated "Started by user Bob".

          This creates confusion for accountability and auditing.

          Two other users have also reported the issue here on the PR for the release which introduced the bug:

          [https://github.com/jenkinsci/rebuild-plugin/pull/56#issuecomment-478868354]

           
          When rebuilding, the new build has the "Started by user" populated with the value from the source build, not the details of the user who requested the rebuild.

          I.e.:
           # User Alice triggers Build 1 
           # Build 1 completes and states "Started by user Alice".
           # User Bob opens Build 1 and clicks "Rebuild", triggering Build 2.
           # Build 2 completes and states "Started by user Alice" but should have stated "Started by user Bob".

          This creates confusion for accountability and auditing.

          Reverting to Rebuilder plugin 1.29 fixes the issue.

          Two other users have also reported the issue here on the PR for the release which introduced the bug:

          [https://github.com/jenkinsci/rebuild-plugin/pull/56#issuecomment-478868354]

           
          Hide
          lsbwant lsb want added a comment -

          I got this problem too

          Show
          lsbwant lsb want added a comment - I got this problem too
          Hide
          ilya_be Ilya B added a comment - - edited

          I am using Rebuilder version 1.29 and for me it includes comments for both builds, which is good, but they are mixed up and go in the wrong order:

          No changes.
          Started by upstream project xxx build number 456 originally caused by:
           * Triggered by GitLab Merge Request #176: abc/xxx/issue54 => master 
          Started by user Xxx
          Rebuilds build #1,123 

          the comment "Started by upstream" refers to the original build 1123.  Since one can change parameters in the rebuild, the description may or may not be relevant, but it is important to point that it describes another branch.

          So if someone is revisiting this plugin, please make sure that the inherited descriptions are marked with the original build number and, if possible, pushed to the end.

          Show
          ilya_be Ilya B added a comment - - edited I am using Rebuilder version 1.29 and for me it includes comments for both builds, which is good, but they are mixed up and go in the wrong order: No changes. Started by upstream project xxx build number 456  originally caused by:  * Triggered by  GitLab Merge Request #176 : abc/xxx/issue54 => master  Started by user Xxx Rebuilds build # 1,123   the comment "Started by upstream" refers to the original build 1123.  Since one can change parameters in the rebuild, the description may or may not be relevant, but it is important to point that it describes another branch. So if someone is revisiting this plugin, please make sure that the inherited descriptions are marked with the original build number and, if possible, pushed to the end.
          Hide
          mooncrosser Grigor Lechev added a comment -

          This is fixed with https://github.com/jenkinsci/rebuild-plugin/pull/57, available in plugin version 1.31

          Show
          mooncrosser Grigor Lechev added a comment - This is fixed with https://github.com/jenkinsci/rebuild-plugin/pull/57 , available in plugin version 1.31

            People

            • Assignee:
              ragesh_nair ragesh_nair
              Reporter:
              jstangroome Jason Stangroome
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: