views:

334

answers:

2

I need to pass a few parameters in the job that will be triggered remotely.
Is it possible?

+5  A: 

The Hudson Wiki has a page about parameterized builds, which includes:

A build can be started just by accessing:
http://server/job/myjob/buildWithParameters?PARAMETER=Value
TheDon
A: 

Hudson's JOB has an option:

Build Environment -> Configure M2 Extra Build Steps -> Add post-build step -> Execute Shell

So, you can execute wget by this option in this way:

wget="http://server/job/myjob/buildWithParameters?PARAMETER1=Value1\&PARAMETER2=Value2"

Try it! I have used it and it works! :)

Gadget