In deploy scenario I need to create and run Jenkins task on the list of hosts, i.e. create something like a parametrized task (where ip address is a parameter) or a task on Multijob Plugin with HOST axis, but run by only 2 ones in parallel over multiple hosts.
One of the options could be to run ansible with the list of hosts, but I'd like to see a status per each host separately and relaunch a Jenkins job if needed.
The main option is to use Job DSL Plugin or Pipeline Plugin, but here I need help to understand what classes/methods of dsl groovy code should be used to achieve this.
Can anyone help with it?
Select the correct answer from above options