tags:

views:

24

answers:

2

is it possible to get the username of the user who initiated a build on Hudson ? There doesn't seem to be any hudson environment variable for username.

otherwise, how are you supposed to return specific builds running under a certain user remotely using the API ?

A: 

http://wiki.hudson-ci.org/display/HUDSON/Quick+and+Simple+Security shows a way to launch hudson as a specific user.

$ java -jar hudson.war --argumentsRealm.passwd.user=password --argumentsRealm.roles.user=admin

It seems argumentsRealm will hopefully have some user information in it.

Scott