I just had an experience:
I placed the git clone in a folder that is in my Dropbox. Build = Fail I placed the git clone on my desktop. Build = Success
Maybe this will help.