I get all parameters of a build using -

    def myparams = 
currentBuild.rawBuild.getAction(ParametersAction).getParameters()

`myparams` is object of 
`java.util.Collections$UnmodifiableRandomAccessList` hence if try  to add 
another parameter to it like  -

    myparams.add([$class: 'StringParameterValue', name: 'Test', value: 
"TestValue"])

then it fails with error - 

    java.lang.UnsupportedOperationException

Please guide how to add parameter to existing parameters.

-- 
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/7f312f1a-7cf3-4c17-8ded-2ba3622b17d0o%40googlegroups.com.

Reply via email to