@Eric 's solution might have helped few people to make the build pass. But, you would be wondering how can just adding -v to the build makes it pass. That's a good indication that you are having timing issues in authentication handshake. -v prints verbose output of error logs which takes slightly more time than usual and it helps the build pass.