Fix bad serialization of ParametersAction.parameterDefinitionNames.
(cherry picked part of commit fcae9bb59881a8878774e4ebbe563935ed1382b4)
@@ -299,7 +299,7 @@ public class ParametersAction implements RunAction2, Iterable<ParameterValue>, Q
public void onAttached(Run<?, ?> r) {
ParametersDefinitionProperty p = r.getParent().getProperty(ParametersDefinitionProperty.class);
if (p != null) {
- this.parameterDefinitionNames = p.getParameterDefinitionNames();
+ this.parameterDefinitionNames = new ArrayList<>(p.getParameterDefinitionNames());
} else {
this.parameterDefinitionNames = Collections.emptyList();
}
