tags:

views:

48

answers:

3

Hey

I've taken over handling Hudson from a contractor and I'm wanting to know what user the hudson is running under.

I need this because I've made a new job which will sync a folder with another folder on a mapped drive. This mapped drive is only available to the build user (user as in what you log into windows with, not log into hudson).

The job itself is getting a 'Failed to copy' error in the log which I believe is because i'm using the wrong windows user and there is no mapped drive? Or would this cause another error?

Regards

+1  A: 

If linux:

ps -ef | grep hudson

The owner of the process will be shown (along with other info).

xagyg
Thanks, though I'm on windows. I will clarify a bit more under my question
Lango
A: 

It obviously runs as a service, so check what services are defined and what user they run as.

You can also use the task manager and check the "Show processes from all users". There should be a Hudson.exe, check what username it is running under.

I just found out about tasklist and taskkill. So you can also run the following command:

tasklist /fi "IMAGENAME eq hudson.exe"

Peter Schuetze
Hudson is a web application, not a standalone executable.
Bernard
@Bernhard: There are several options to run Hudson. We use the build in winstone engine and installed it as a service. You will than see the Hudson.exe in the task manager. It can also be deployed to an application server, in that case I would suspect that the application will run in the user context of the application server. Without getting more information on this, we can only guess a solution to help Lango.
Peter Schuetze
A: 

Figure out what web server or servlet container (such as Tomcat) Hudson is deployed on. Hudson is a web application and will use the same user as the web server it is deployed on.

Bernard
Thanks this is it. There was no hudson.exe.
Lango

related questions