Update ci.sh to checkout stable branches from bitbucket