detect whether the build was successful