Hi, I have a job that takes a number of parameters (version_number, release_number, branch etc). This build can be built in a number of ways, some need to get the values of these parameters from other locations. the different modes are:
1) Manually - Take the passed in parameters 2) SCM Change - take the parameter values from the last successful build of another job 3) Timer - take the parameter values from the last successful build of another job 4) Upstream Job - take the parameters passed to it from the upstream job. 1 is obviously no problem, as is 4 with the use of the Parameterized build plugin. I have written a Groovy script to retrieve the parameter values for cases 2 and 3 but can't find a way to apply these values to the variables used in the build step (execute shell ). I can create new parameters and access these as variables but I don't really like this method as it makes my shell script a bit ugly. Does anyone know how to overwrite parameter values from within the Groovy script. Thanks
