Since upgrading to Pipeline: Active Choices Plug-in: 1.5.1 the Groovy script is no longer serializable and therefore throws NotSerializableException when input is requested.
The "Serializable chain" seems to be broken:
- Active Choice Plugin parameters implement Serializable via ParameterDefinition inheritance
- Those implementation can happen to contain a non-transient GroovyScript
- GroovyScript implements Serializable (via Script) but also contains a non-transient SecureGroovyScript
- SecureGroovyScript does not implement Serializable
The Pipeline/Pipeline-input-step plugin happens to be one of the components making actual use of the ParameterDefinition implements Serializable contract but this issue isn't strictly tied to pipelines.