Fix lost build detection.

On maven jobs, a result is reported as soon as one target finishes.
Switch to using 'building' to determine whether a build has
finished, rather than checking for a result.

Change-Id: Ic681d88e77abe6af6af59689337586b48af62d80
1 file changed