Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Run job as different user
Run job as different user [message #1284783] Fri, 04 April 2014 22:02 Go to next message
Paul Wang is currently offline Paul WangFriend
Messages: 1
Registered: April 2014
Junior Member
I setup Hudson on Windows (server 2008 R2)
Seems the job started by anonymous
Started by user anonymous
[workspace] $ cmd /c call c:\hudson\tomcat\temp\hudson395374251564020258.bat

it called my perl script and the script tries to access samba drive.

the problem I have now is the job can't see the samba drive at all.
I think my samba drive doesn't support "anonymous" login.

How can I run the job with another user?
tried to use "runas",
it prints
Enter the password for fs_reg@AMR:
c:\Regression\bin8>exit 1
Finished: FAILURE

Any solutions?
Re: Run job as different user [message #1289780 is a reply to message #1284783] Wed, 09 April 2014 16:38 Go to previous message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
I'm not a window expert, but I thought you could do

runas /user:fs_reg@AMR ...

Winston Prakash
Eclipse Hudson team
Previous Topic:Need help configuring Hudson for SSL with Git/Gerrit
Next Topic:how to configure mail ext plugin
Goto Forum:

Current Time: Sat Apr 21 10:06:40 GMT 2018

Powered by FUDForum. Page generated in 0.01893 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software