We use Hudson as our CI server. My question is it possible to have two jobs, say A and B, so that each runs under different user accounts?
Thanks.
P.S. Hudson runs inside Tomcat on windows server 2003.
We use Hudson as our CI server. My question is it possible to have two jobs, say A and B, so that each runs under different user accounts?
Thanks.
P.S. Hudson runs inside Tomcat on windows server 2003.
Unfortunately, no, its not, at least not in the ways you're thinking. If you're running this within Cygwin or similar, you can setup sudo
or run a batch script that would allow you to assume another user for the purposes of running a script.
However, as it sounds like you're running this on straight up Windows, you could likely use the runas command to do a similar thing--however, this would require you to place the commands to be run in Hudson as a separate batch script to be run. Also keep in mind that running jobs as users requires that the Tomcat user be able to run as what is likely an administrator, which opens up a whole slew of possible security issues and is NOT recommended.