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/0ec6fa42-3377-489c-a629-866b72d4e72f%40googlegroups.com.

Reply via email to