This adds the list, not the individual nodes to preBuildSteps. So preBuildSteps will contain a list containing a list of nodes. Use addAll to add the nodes.