I'm trying to push some changes that happen during a build plan to a linked repository, but I keep getting the same error message:
19-Feb-2015 17:01:16 | Host key verification failed. |
19-Feb-2015 17:01:16 | fatal: Could not read from remote repository. |
19-Feb-2015 17:01:16 | |
19-Feb-2015 17:01:16 | Please make sure you have the correct access rights |
19-Feb-2015 17:01:16 | and the repository exists. |
Here's the script task I'm using to try to push:
# set the origin remote to our developer sandbox
gitremote=`git remote -v`
if [[ -z $gitremote ]]; then
git remote add origin $devrepourl
elif [[ $gitremote == *nothing* ]]; then
git remote set-url origin $devrepourl
fi
# set up git user
if [[ -z $bamboouser ]]; then
bamboouser="Atlassian Bamboo"
fi
git config user.name $bamboouser
git config user.email $bambooemail
# add, commit and push changes
filelist=`git status -s`
if [[ -n $filelist ]]; then
git add src/*
git commit -a -m "$commitmsg $filelist"
returnval=`git push origin $branchname`
if [[ -z $returnval ]]; then
exit 0;
else
exit 1;
fi
else
echo '**** Nothing to commit ****'
exit 1
fi
I'm using this cookbook for Atlassian - https://developer.atlassian.com/display/SFDC/Setting+Up+Continuous+Integration+and+Deployment. I've also replaced every variable by the real value (username/password/server), just to make sure this wasn't the problem. I also set the right private key in my Shared Credentials, and the public key in an user profile that has R/W access to the specific linked repository.
Any idea how I could fix this?
I'm having the same problem here as well - between Bamboo and Stash.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.