Details
-
New Feature
-
Status: In Progress (View Workflow)
-
Minor
-
Resolution: Unresolved
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
Issue Links
- duplicates
-
JENKINS-41731 Allow the access to the current user's role(s) in the Jenkins 2 pipeline
-
- Open
-
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