You may want to look at the (very un-obvious named) Authorize Project plugin.
That lets projects build with the identity of the user that triggered the build. It's not going to get you all you want, but should get you closer. You'll probably need to write an authorization strategy to capture the JAAS subject and store it as a UserProperty On Tuesday, May 26, 2015, Guillaume Delory <[email protected]> wrote: > Hi everyone, > > I'm running Jenkins in WebSphere 8.5 to manage authentication. It works > fine and I can get the JAAS Subject in the Script Console by doing: > println com.ibm.websphere.security.auth.WSSubject.getCallerSubject() > > I also wrote a plugin that adds a simple custom step (extending the > Builder class). I would like to use this plugin to contact some application > also running in WAS. To do this I need to get the caller Subject as I did > in the console. However, the code above in the perform method returns null. > I guess Jenkins runs the step in a different thread without pushing the > JAAS Subject. > > Is there any way (by configuration or programmatically) to force Jenkins > to push the Subject to the build step so I can use it? Or maybe a different > way to get the caller Subject from the plugin? > > Thank you very much for your help. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <javascript:_e(%7B%7D,'cvml','jenkinsci-dev%[email protected]');> > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/b9be9c04-cb9a-4fdd-a7cc-903d88d78db9%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/b9be9c04-cb9a-4fdd-a7cc-903d88d78db9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Sent from my phone -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMyfeeZ7uYLoDBDGqYcgq%3D2Aq%2BoBTN-Oc84_5Dqv8qqK4A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
