I wonder if the question is about what jenkins parameters are required (which are basically strings with some separators) or how to proceed those parameters though.
On Friday, 17 February 2017 18:27:58 UTC, Mona Pinjani wrote: > > Anyone ? What plugin should I use to get multiple values for a > parameter(s) so that I can iterate over it ? > I have tried multi-line string parameter and even extended Choice > Parameter. I would like the parameter values to be text based rather than > choice > > On Thursday, February 16, 2017 at 5:39:34 PM UTC-6, Mona Pinjani wrote: >> >> Hi, >> >> I want to setup a jenkins job which takes 2 parameters which take IP >> addresses and host names from the user and then iterates over the IPs to >> run curl. >> >> So a user can enter one ore more values for IP and VM Name. >> IP=aa.bb.cc.dd ee.ff.gg.hh (new line separated) >> HOST_NAME=hostname1 hostname2 (new line separated) >> >> I don't want this to be a choice, but rather a text entered by user. >> Multi line string parameter is not giving me the desired output from these >> parameters. What is the best way to achieve this >> and iterate it ? >> >> Thanks, >> >> Desired output by running: >> for ((i=0; i < ${#IP[@]}; i++)) >> do >> echo "${IP[$i]} ${HOST_NAME[$i]}" >> done >> aa.bb.cc.dd hostname1 >> ee.ff.gg.hh hostname2 >> >> Instead I get this >> >> aa.bb.cc.ddee.ff.gg.hh hostname1 >> hostname2 >> >> -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/38ad9433-f3ce-4916-90d5-a1b9a8013cc7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.