piper master fails for cloudFoundryDeploy step
The cloudFoundryStep from current piper master fails with the following error for certain scenarios
java.lang.StackOverflowError [2022-10-14T17:39:40.867Z] at java.base/java.lang.Exception.<init>(Exception.java:102) [2022-10-14T17:39:40.867Z] at java.base/java.lang.ReflectiveOperationException.<init>(ReflectiveOperationException.java:89) [2022-10-14T17:39:40.867Z] at java.base/java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:73) [2022-10-14T17:39:40.867Z] at jdk.internal.reflect.GeneratedMethodAccessor46722.invoke(Unknown Source) [2022-10-14T17:39:40.867Z] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2022-10-14T17:39:40.867Z] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [2022-10-14T17:39:40.867Z] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98) [2022-10-14T17:39:40.867Z] at groovy.lang.MetaBeanProperty.getProperty(MetaBeanProperty.java:59) [2022-10-14T17:39:40.867Z] at groovy.lang.PropertyValue.getValue(PropertyValue.java:42) [2022-10-14T17:39:40.867Z] at org.codehaus.groovy.runtime.DefaultGroovyMethods.getProperties(DefaultGroovyMethods.java:474) [2022-10-14T17:39:40.867Z] at groovy.json.JsonOutput.getObjectProperties(JsonOutput.java:338)
We have been referencing the step as below
cloudFoundryDeploy script: paramsMap.script, cfSpace: "${params.TEAM_SPACE}", cfNativeDeployParameters: "${cfNativeDeployParameters}"
The above used to work considering we were passing the parameters in the script. Nothing changed from our side and we believe the issue could be coming from the following commit