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

Grant Job Rerun in a Pipeline as a Individual Permission

    Details

    • Type: New Feature
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Labels:
      None
    • Environment:
      Jenkins Version 2.121.3
      Role-based Authorization Strategy Plugin 2.7.0
    • Similar Issues:

      Description

      This is not for declarative or scripted pipelines but for the Delivery Pipeline view.

      Currently the ability to rerun (the two circular arrows in the pipeline view) a job in the middle of a visualized pipeline cannot be granted as a single type of access like "Cancel" can.  To give someone the ability to rerun a job in a pipeline requires us to grant more permissions than we would like.

      Request enhancement to the Role Strategy plugin to be able to grant this permission singularly.

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Role Strategy Plugin will support such permission once Declarative Pipeline Plugin declares it. AFAICT there is nothing to do on the Role Strategy side, reassigned to Delivery Pipeline

          Show
          oleg_nenashev Oleg Nenashev added a comment - Role Strategy Plugin will support such permission once Declarative Pipeline Plugin declares it. AFAICT there is nothing to do on the Role Strategy side, reassigned to Delivery Pipeline
          Hide
          tommysdk Tommy Tynjä added a comment -

          Oleg Nenashev, Jed Jacobs; So which is the role/permission that should grant this behavior?

          Show
          tommysdk Tommy Tynjä added a comment - Oleg Nenashev , Jed Jacobs ; So which is the role/permission that should grant this behavior?
          Hide
          tommysdk Tommy Tynjä added a comment -

          Oleg Nenashev, Jed Jacobs; currently I don't see a permission in Jenkins core that would be more appropriate that the Item.BUILD permission which is currently necessary for triggering re-builds. I don't think it falls on the delivery pipeline plugin to provide custom permissions. Do you have any suggestions for this?

          Show
          tommysdk Tommy Tynjä added a comment - Oleg Nenashev , Jed Jacobs ; currently I don't see a permission in Jenkins core that would be more appropriate that the Item.BUILD permission which is currently necessary for triggering re-builds. I don't think it falls on the delivery pipeline plugin to provide custom permissions. Do you have any suggestions for this?
          Hide
          x102785 Jed Jacobs added a comment -

          We resolved this by granting "build" access to jobs which may require a restart.  This is not ideal because this gives ability for people to run the job off-pipeline instead of limiting them to rerun a job only in the context of a pipeline.  However, lacking any other solution at this time, that is how we are handling this.

          Show
          x102785 Jed Jacobs added a comment - We resolved this by granting "build" access to jobs which may require a restart.  This is not ideal because this gives ability for people to run the job off-pipeline instead of limiting them to rerun a job only in the context of a pipeline.  However, lacking any other solution at this time, that is how we are handling this.

            People

            • Assignee:
              patbos Patrik Boström
              Reporter:
              x102785 Jed Jacobs
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: