Make sure the jenkins build isn't still building before reporting success

This happens when the job is a matrix job and spawns multiple builds