Thanks Antonio. I will try that asap. Appreciated. /Alfredo
On Tue., 7 Apr. 2020, 1:32 pm Antonio Gomez, <[email protected]> wrote: > for (Server in ParamServer) { > echo Server > } > > Sorry I have made a mistake in the above > > El martes, 7 de abril de 2020, 13:30:46 (UTC+2), Antonio Gomez escribió: >> >> Hello, >> I have the same case and I have solved it lke this: >> >> def ParamServer = "${params.Server}".tokenize(",") >> >> Recover values from parameter and I separate them by commas, after yo can >> acces that a simple array >> >> for (Server in ParamServer) { >> echo "foo" >> } >> >> El martes, 7 de abril de 2020, 12:46:02 (UTC+2), Alfredo De Luca escribió: >>> >>> Hi all. >>> >>> I have a Jenkinsfile with some text parameters for inputs. >>> In one of them I would like to have multiple words with a comma >>> separation like >>> 10.10.10.10,10.10.10.20,10.10.10.30 >>> >>> then my question is: >>> How can i split those inputs in different variables? >>> Any idea/clue? >>> >>> cheers >>> >>> -- >>> *Alfredo* >>> >>> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/40b37647-75cd-435e-bcb0-ef88be50c825%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/40b37647-75cd-435e-bcb0-ef88be50c825%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAAWpFTFf3N%3DzOOZ%3DojHYdGQDsLy5rkXs50WbCL4ybg5mW8MN5g%40mail.gmail.com.
