JENKINS-50633 the plugin accepts Maven's Model class as an argument. Although it is a bad design, we cannot do much with that. But we can at least invoke the step within the NonCPS closure. In such case the value won't be persisted to the context, but the argument will be still persisted... and Cause JEP-200.
It would be great to allow parameters to filter-away/mock options which are not supposed to be persisted.
There is existing ArgumentsActionImpl#sanitizeAndRecordMutation() API in the class, which can invoke defineArguments(). It is not working in this case, because it does not take the really passed parameters into account. So there may be issues with default arguments if any.
I propose to add new API.