1. Back up the Hudson global and job specific configurations with thinBackup

Install thinBackup Hudson’s plug-in

thinBackup

Configure

thinBackupSettings

Make directory: /home/hudson-backup

sudo mkdir /home/hudson-backup

sudo chmod 777 -R /home/hudson-backup

Backup: Chose Backup Now

Restore: Chose Restore. Restart Hudson

sudo service hudson stop

sudo service hudson start

Sometime, I use below command to make sure Hudson was stopped

sudo pkill -9 -f hudson

2. Upgrade Hudson

sudo sh -c “echo ‘deb http://hudson-ci.org/debian binary/’ > /etc/apt/sources.list.d/hudson.list”

sudo sh -c “echo ‘deb http://hudson-ci.org/debian /’ > /etc/apt/sources.list.d/hudson.list”

sudo apt-get update

sudo apt-get install hudson

sudo apt-get update

sudo apt-get upgrade

Restart Hudson

sudo service hudson stop

sudo service hudson start

References

[1]. http://wiki.hudson-ci.org/display/HUDSON/thinBackup

[2]. http://wiki.eclipse.org/Hudson-ci/Installing_Hudson_DEB

[3]. http://www.eclipse.org/hudson/the-hudson-book/book-hudson.chunked/ch02.html

 

http://nvanhuong.wordpress.com/2013/10/26/upgrade-hudson-to-lastest-version-on-ubuntu-server/