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

Ability to get a user's role during build

    XMLWordPrintable

    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

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          It is a reasonable improvement.
          Unfortunately I do not have time to implement it anytime soon, but I will be happy to review pull requests

          Show
          oleg_nenashev Oleg Nenashev added a comment - It is a reasonable improvement. Unfortunately I do not have time to implement it anytime soon, but I will be happy to review pull requests
          Hide
          wimnat Rob White added a comment -

          Oleg Nenashev could you provide a brief summary of how you would implement this and I can take a stab at a PR?

          Show
          wimnat Rob White added a comment - Oleg Nenashev could you provide a brief summary of how you would implement this and I can take a stab at a PR?
          Hide
          jacek_duszenko Jacek Duszenko added a comment -

          I see that this task is kind of abandoned, so I claim it and am getting to work on it now

          Show
          jacek_duszenko Jacek Duszenko added a comment - I see that this task is kind of abandoned, so I claim it and am getting to work on it now

            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: