I have a pipeline to push to Elastic Beanstalk. Sometimes deployment will pass in Bitbucket but will fail in Elastic Beanstalk. How can I make my build wait until Elastic Beanstalk is done building and also give a success or failure depending on what happened with EB?