Made deployment part of build failure or success