-
Bug
-
Resolution: Unresolved
-
Minor
When I change the defaultValue of a hudson.scm.listtagsparameter.ListSubversionTagsParameterDefinition I got the exception:
groovy.lang.ReadOnlyPropertyException: Cannot set readonly property: defaultValue for class: hudson.scm.listtagsparameter.ListSubversionTagsParameterDefinition
at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2435)
at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3347)
at org.codehaus.groovy.runtime.InvokerHelper.setProperty(InvokerHelper.java:183)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.setProperty(ScriptBytecodeAdapter.java:480)
at Script1.run(Script1.groovy:2.....
With other parameters of a Jenkins job (e.g. strings/text fields) there is no problem with invoking Groovy code like:
job.getProperty(ParametersDefinitionProperty.class).getParameterDefinition("parameterName").defaultValue = "2.6.2"