http://wiki.hudson-ci.org/display/HUDSON/Building+a+software+project
we're running against Windows machines and I wanted to try a proof of concept for that. So the following is a non-scalable proof of concept, but does show the idea works:
1. Hudson has a configuration choice to pass tokens to an URL that will automatically initiate and on demand build remotely, so it's possible to do this by email
2. In the Hudson configuration for the build, there's a section named 'Build Triggers' and a checkbox 'Trigger builds remotely (e.g., from scripts)'. Check this box, then enter a value for the Authentication Token
3. In this proof of concept design an exe was created on a client that had these lines:
start iexplore http://server:port/hudson/job/job_name/build?token=authentication_token
ping -n 20 127.0.0.1
taskkill /im iexplore.exe
4. Then an Outlook email rule was set up on the client with these parameters: When a message arrives with 'Run job_name
5. Now when you send a mail to this client it will open a browser, pass the token in the URL and begin the build
No comments:
Post a Comment