I used an ssh key for the hudson user, rather than using password auth.
Here are the instructions I used for ubuntu 9.10:
add this to /etc/apt/sources.list
deb http://hudson-ci.org/debian binary/
sudo apt-get update
sudo apt-get install hudson
That creates a hudson install with a hudson user.
Now su to that user so that we can generate an ssh key for it:
sudo su - hudson
cd ~ # default hudson home is /var/lib/hudson
create the ssh key:
ssh-keygen -t rsa
That creates the public/private key in the /var/lib/hudson/.ssh directory. Go into that directory and copy the id_rsa.pub key into your clipboard.
Go onto the bitbucket and go to the account that you want to have access. Go to the "account" page and paste the public key in the "SSH Keys" field.
Then go to the repo you want to clone and get the ssh clone string for your repo (ex: hg clone ssh://hg@bitbucket.org/snej/murky/).
Back on your hudson box, manually clone the repository as the hudson user. That will prompt you to accept the bitbucket public key in your .ssh/known_hosts file.
After that you should be able to use the mercurial hudson plugin to clone without problems.
Let me know if you have any further issues: mailto contact (@AT@) naleid.com
258 days ago : 251 hits