check if the build is fail or success