Is it possible to disable a build step if a build is being run as a dependency of another?
I'll describe my situation, as that might be a bit clearer...
I have 2 configurations, call them "compile" and "compile+test". Each of them has a single build step to do the main bit of work.
I also want to include a second build step that sends emails depending on statistics generated during the earlier step.
If I add the email step to both configurations there will be the situation where "compile+test" generates 2 sets of emails, with the "compile+test" email repeating the contents of the "compile" email (plus some extra things).
Is there any way to detect when "compile" is being build as a dependency, and so disable the email build step?