Home > Deploy > Upgrade Hudson to lastest version on Ubuntu Server

Upgrade Hudson to lastest version on Ubuntu Server

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

Advertisements
Categories: Deploy

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: