build trigger functionality

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

build trigger functionality

Guillaume Boucherie
HI all,

I'm using hudson for my maven2 project, so I configure the build to poll scm every 15 minutes and run a "clean install" and everything works fine.
But now I'm want to run a "clean site:deploy" every days, it is possible to have this two behavior in the same hudson project ?
Thanks

--
CletteBou
clettebou.miniville.fr
Reply | Threaded
Open this post in threaded view
|

Re: build trigger functionality

jblack
You can chain maven executions together in the same hudson job with "|", so you can either setup you goals to be:
  clean install site:deploy
or
  clean install | site:deploy

Use the latter, for example, if you need to use a different profile for the site deploy then for the install execution.


Jeff

Guillaume Boucherie wrote
HI all,

I'm using hudson for my maven2 project, so I configure the build to poll scm
every 15 minutes and run a "clean install" and everything works fine.
But now I'm want to run a "clean site:deploy" every days, it is possible to
have this two behavior in the same hudson project ?
Thanks

--
CletteBou
clettebou.miniville.fr