Change getLastBuild() to get LastCompletedBuild()