On my jenkins the labels are setup as "TopLevel.1stLevel.2ndLevel". Some jobs only care about 1stLevel grouping while some want to go nodes only from 2ndLevel. But the problem is that I can't do a contains search on the label in pipeline script.
It would be nice to be able to look up nodes in the 1st Level grouping without creating additional labels just for that level.
Or Is there a better way to approach the search/labeling?