New to groovy and not a java lover. In my jenkinsfile, I'm having an issue with doing what I think would be simple.
SURL = new String[3]
for (int i = 0; i < 3; i++)
{
url="value"
SURL[i]="${url}"
}
Seems like in this simple example that SURL[0] through SURL[2] would be set to "value". I'm getting the error:
java.lang.ArrayStoreException: org.codehaus.groovy.runtime.GStringImpl
Any help is appreciated. Thx!