How to use logged-in username on slaves?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

How to use logged-in username on slaves?

Hendryk Bockelmann
I opened our hudson to all colleagues via LDAP authentication but now I
have the problem to modify all existing jobs to use the correct username
(for file access etc).

For a job running on the master, there is a solution given at:
which sets an env var BUILD_USER by examination of

Unfortunately if the job is tied to a slave I cannot directly access the
file space on the master. Does anyone know a possibility how to get the
username that started a job which runs on a slave?
There are some really usefull env var like BUILD_NUMBER or BUILD_ID
which are available on the slave - imho it would be good to also have
BUILD_USER available

smime.p7s (7K) Download Attachment