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

Rebuild plugin records incorrect "Started by user"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rebuild-plugin
    • Jenkins v2.164.1 LTS on Ubuntu 14.04 Trusty w/ Rebuilder plugin v1.30

      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

       

          [JENKINS-56860] Rebuild plugin records incorrect "Started by user"

          lsb want added a comment -

          I got this problem too

          lsb want added a comment - I got this problem too

          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.

          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.

          Grigor Lechev added a comment -

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

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

            ragesh_nair ragesh_nair
            jstangroome Jason Stangroome
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: