Automatic Job launch on Hudson startup

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Automatic Job launch on Hudson startup

efe4pj
Hi


I run Hudson (1.324) deployed under Tomcat6, running as a service on Windows 2008.

One of my Hudson Job need to deliver some artifacts to a network shared directory on a remote Windows machine.
I run the Tomcat6 service under a specific system account to get network access (LocalSystem has no remote access right)

I used a mapped network drive (y:) to provides the credentials of the remote account.
net use y: \\RemoteHost\RemoteShare /user:RemoteHost\HUDSON hudson_password /persistent:yes

The "y:" drive must be created for hudson's account, and I found quite practical to define a "technical" job to call the shell script containing the "net use" command above.

I would like this job executed every time Tomcat6 is started.

What do you recommend to achieve this behaviour?


Regards
Reply | Threaded
Open this post in threaded view
|

Re: Automatic Job launch on Hudson startup

Alan Harder-2
http://wiki.hudson-ci.org/display/HUDSON/Startup+Trigger


efe4pj wrote:

> Hi
>
>
> I run Hudson (1.324) deployed under Tomcat6, running as a service on Windows
> 2008.
>
> One of my Hudson Job need to deliver some artifacts to a network shared
> directory on a remote Windows machine.
> I run the Tomcat6 service under a specific system account to get network
> access (LocalSystem has no remote access right)
>
> I used a mapped network drive (y:) to provides the credentials of the remote
> account.
> net use y: \\RemoteHost\RemoteShare /user:RemoteHost\HUDSON hudson_password
> /persistent:yes
>
> The "y:" drive must be created for hudson's account, and I found quite
> practical to define a "technical" job to call the shell script containing
> the "net use" command above.
>
> I would like this job executed every time Tomcat6 is started.
>
> What do you recommend to achieve this behaviour?
>
>
> Regards
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Automatic Job launch on Hudson startup

efe4pj
That's exactly what I was looking for.

Thanks.