Tie nodeProperties to the current node for save purpose
@@ -147,7 +147,7 @@ public abstract class Slave extends Node implements Serializable {
private String label="";
private /*almost final*/ DescribableList<NodeProperty<?>,NodePropertyDescriptor> nodeProperties =
- new DescribableList<NodeProperty<?>,NodePropertyDescriptor>(Jenkins.getInstance().getNodesObject());
+ new DescribableList<>(this);
/**
* Lazily computed set of labels from {@link #label}.
@@ -559,7 +559,7 @@ public abstract class Slave extends Node implements Serializable {
*/
protected Object readResolve() {
if(nodeProperties==null)
- nodeProperties = new DescribableList<NodeProperty<?>,NodePropertyDescriptor>(Jenkins.getInstance().getNodesObject());
+ nodeProperties = new DescribableList<>(this);
return this;
}
