Is it possible to pass parameters in the Hudson task that will be launched remotely?

I need to pass several parameters in a task that will be started remotely.
Is it possible?

+3
source share
2 answers

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
+7
source

Hudson JOB has an option:

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

So, you can execute wget with this option as follows:

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

Give it a try! I used it and it works! :)

+1
source

Source: https://habr.com/ru/post/1731354/


All Articles