You could use the Rest API, you will need to know the promotion build 
number:

<jenkins url>/job/<job name>/promotion/process/<promotion name>/<promotion 
build nr>/api/json?pretty=true

-> causes.userName

Am Sonntag, 22. Dezember 2013 14:20:24 UTC+1 schrieb alex ouzounis:
>
> Hi all,
>
> Is there a way to get the user that promoted a build programmatically ?
>
> I know I can get the promoted_url/id/svn_revision etc but I cannot see how 
> I can get the user that made the promotion. 
> The promotion status view shows the user, so it must be possible, 
>
> It would be nice to use this plugin 
> https://wiki.jenkins-ci.org/display/JENKINS/Build+User+Vars+Plugin as 
> part of the promotion process but have not figured how to do it yet. 
>
> All I want is the user that made the promotion so that I can include it in 
> the report being generated at the end of a series of jobs.
>
> Thanks!
>
> Alex
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to