Stopping extra builds

We have X deploy pipelines, which all contain trigger steps to trigger our test pipeline. When a commit is deployed, X builds on our test pipeline are triggered. Is there a way to condense these X builds into a single build which can be referenced by all of the deploy pipelines? All builds have the same commit hash.