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

Ability to get a user's role during build

    Details

    • Similar Issues:

      Description

      I would like to be able to get the role(s) that I have assigned to a user during build time.

      I want to be able to write an if statement in my Jenkinsfile based on the role that a user has.

      So for example, user Bob starts a build.  When the build commences I can get the role(s) that Bob has to display an optional stage based on his role.

       

        Attachments

          Activity

          wimnat Rob White created issue -
          oleg_nenashev Oleg Nenashev made changes -
          Field Original Value New Value
          Assignee Oleg Nenashev [ oleg_nenashev ]
          oleg_nenashev Oleg Nenashev made changes -
          Labels help-wanted newbie-friendly
          jacek_duszenko Jacek Duszenko made changes -
          Assignee Jacek Duszenko [ jacek_duszenko ]
          jacek_duszenko Jacek Duszenko made changes -
          Status Open [ 1 ] In Progress [ 3 ]

            People

            • Assignee:
              jacek_duszenko Jacek Duszenko
              Reporter:
              wimnat Rob White
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: