I'm running Jenkins version 1.565.2
I'm having a strange problem when dynamically triggering downstream projects
I have created a job 'Sports - Core - Scheduled' which accepts 2 parameters.
One - called 'Stream' which is for our stream(Source Control stream). This is a choice parameter
Two - called 'Product' which is for our products(that we build in our company). This is a Label parameter having 10 nodes(servers) associated to it.
When i build this job manually, Jenkins recognises the Label parameter and automatically picks one of the free node from the label and everything works fine.
We have about 300 of these sort of jobs for various streams/products scenarios for which i'm writing a Groovy script which calls all these jobs to run dynamically but the following script below is failing to recognise the label parameter and actually assigning someother node which is not even associated with the 'product' label.
Any idea what i'm doing wrong or what do i need to do to ensure i can pass a label parameter successfully to the script below.
I'm a newbie but i can provide more details if need be.
// Core Test run
job = Hudson.instance.getJob('Sports - Core - Scheduled');
WholeParams = [
for (i in WholeParams)