Non-admin users see "Rebuild" button twice when Rebuilder plugin is installed

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major
    • Component/s: rebuild-plugin
    • None

      Non-admin users see two "Rebuild" buttons on Pipeline builds when the Rebuilder plugin is installed.
      This does not happen for admin users, who instead see Replay + Rebuild, which is expected.

      For non-admin users, the UI shows:

      • Rebuild (from Rebuilder plugin)
      • Rebuild (actually the Pipeline Replay action, but renamed because the user lacks the Replay permission)

      This makes it appear as if Jenkins has duplicated the Rebuild action. Users perceive this as a bug.

      CloudBees has documented this behavior here:
      đź”— https://docs.cloudbees.com/docs/cloudbees-ci-kb/latest/troubleshooting-guides/i-see-twice-the-option-rebuild-in-any-of-my-builds

      According to the article, the duplication is caused by the Rebuilder plugin combined with the pipeline replay feature. However, from a user perspective, this is confusing and appears incorrect.

      Expected Behavior

      • Replay should be clearly distinguished from Rebuild
      • Or Replay should not be relabeled as Rebuild for users without the Replay permission
      • Or Jenkins should avoid showing two actions with the same label

      Actual Behavior

      • Non-admin users see two identical “Rebuild” buttons, with no indication that one is actually “Replay”

      Steps to Reproduce

      1. Install the Rebuilder plugin
      1. Configure Jenkins with a security/permissions strategy where non-admin users:
        • Have permission to trigger builds
        • Do not have the Pipeline Replay permission
      1. Run a Pipeline job
      1. View the completed build as a non-admin user
      1. Two Rebuild buttons are shown

      Impact

      Users believe Jenkins is malfunctioning or misconfigured, leading to confusion and support requests.
      The UI is misleading and does not clarify which action is Replay vs Rebuild.

            Assignee:
            ragesh_nair
            Reporter:
            Release
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: