Use lastCompletedBuild instead of lastBuild, which can still be building