Sometimes we need to run publishers on parent builds only.
Example: aggregate results inside groovy scripts
Flexible Publish already provides an option to have a publisher run only on parent builds. It also enables run only on child builds.
I cannot get whay you want. Please let me know more details.
Already introduced in 0.11, JENKINS-14494 .