Getting the current logged-in user from an Ant task running in Hudson -


I'm using a remote box.

Ant functions as a part of deployment write a log record to a database. I want to be able to include the current user's username.

Does anyone know that the user's entry is available for the entry script running in Hudson? Probably as an environment variable?

This is not available in the form of an environment variable, because the reason for the single creation is several reasons This can be triggered by timer triggers, and when queued, the user can also start the build. As a result, there will be a build with two reasons - Users and Timer triggers are also possible for many users due to the same build.

If you want to see the reasons, you should take a look at the XML API. You can wget / curl at the right URL, and you will see all the reasons for the build.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -