Update – Oct. 2015: This is out of date. You can set up a FREE CI server through CircleCI. Watch this video on how to do that.
This post is part 2 in a series of posts of how to set up an Android build server.
Posts:
- Part 1 – The Server
- Part 2 – Installing Hudson (this post)
- Part 3 – Installing the Android SDK
- Part 4 – Communicating with GitHub (coming this week)
- Part 5 – Creating a Hudson Build Job (coming this week)
In this post I’m going to show you how to install Hudson CI on a 64bit Ubuntu 10.04 LTS headless server (no gui).
Note: I did this about 2 months ago. If you see any typos or find any errors, please comment so I can fix them. Thanks!
Installing Hudson
Once you have Java installed you can install Hudson. Hudson can be installed as a Debian package, and that’s what I’m going to do here. You may want to look at the hudson installation documents as these instructions may be out of date (depending on when you found this site) or if you’re using a non-debian system.
The instructions on Hudson’s site can be found here: http://wiki.hudson-ci.org/display/HUDSON/Installing+Hudson
Installing Hudson as a Debian package offers a few benefits:
- Automatic upgrade of Hudson via apt
- /etc/init.d hook up to start Hudson on boot
Here’s how I added Hudson CI to my Ubuntu 10.04 LTS server.
From the command line, type the following:
wget -O /tmp/key http://hudson-ci.org/debian/hudson-ci.org.key sudo apt-key add /tmp/key
This will add a temporary key to the Hudson CI Debian repository and the second line will add the repository to the list of sources.
Now, it’s as simple as typing the following:
wget -O /tmp/hudson.deb http://hudson-ci.org/latest/debian/hudson.deb sudo dpkg --install /tmp/hudson.deb
The first line gets the hudson.deb package file.
The second line installs Hudson.
Troubleshooting
Right after I ran:
wget -O /tmp/hudson.deb http://hudson-ci.org/latest/debian/hudson.deb sudo dpkg --install /tmp/hudson.deb
I received an error:
hudson: Depends: daemon but it is not installed
To fix this, you will need to install the hudson deamon by running the following command:
apt-get install hudson daemon
Now, re-run the following and you shouldn’t have any issues.
wget -O /tmp/hudson.deb http://hudson-ci.org/latest/debian/hudson.deb sudo dpkg --install /tmp/hudson.deb
Updating Your Hudson Install
Once you’re Hudson CI is installed, its best for you to update it to make sure you have all the patches and updates possible. To get those updates, run the following command:
apt-get update; apt-get install hudson
This will update Hudson and make sure that Hudson is installed and up to date.
Wrap Up
Hudson is now installed. You should be able to go to your web browser and hit port 8080 on the server, such as http://example.org:8080 and Hudson will load. If you want Hudson to run under port 80, please see the Hudson documentation for instructions. I’m running mine on port 8080 with no problems. You should see a screen that looks similar to this:
In the next post I’ll install the Android SDK and download all of the necessary SDK’s (Android versions) that we need to build our applications.
1603602377 says
http://www.louisvuittonpurses-bags.net Louis Vuitton Purses
http://www.louisvuittonhandbags-lv.com LV Bags
http://www.cheaplouisvuitton-bags.net Cheap Louis Vuitton
http://www.louisvuitton0.com Louis Vuitton
http://www.louisvuittonoutletsun.net Louis Vuitton Sunglasses
http://www.louisvuittonhandbags-lv.com Louis Vuitton Handbags
http://www.coachsoutletonline.org Coach Online Outlet
http://www.coachfactorysoutletonline.org Coach Factory Online
http://www.coachsfactoryoutlet.net Coach Factory
http://www.coachsoutletstoreonline.com Coach Outlet
http://www.alouisvuittonhandbags.com Authentic Louis Vuitton
http://www.burberryscarfoutlete.net Burberry Outlet
http://www.coachsoutletonline.org Coach Factory Outlet Online
http://www.e-louisvuittonoutlet.net Louis Vuitton Outlet
http://www.burberryscarf-outlet.com Burberry Outlet
http://www.coachfactoryoutletonlinstores.net Coach Factory Outlet Online
http://www.cheapcoachsbags.net Coach Bags
http://www.louisvuittonpurses-bags.net Louis Vuitton Bags
http://www.chanelbags-max.com Chanel Bags
http://www.louisvuittonbagsonline.net Louis Vuitton Bags
http://www.louisvuittonoutletsz.com Louis Vuitton Outlet
http://www.burberrybags-sale.net Burberry Bags
http://www.coachfactorysoutletonline.org Coach Factory Outlet Online
http://www.chanelhandbags-bags.net Chanel Bags
Coach Factory Outlet says
http://buycoachfactoryoutletsz.com
Anonymous says
football boots comfortable and cheap
football shoes designer bags Come surprise
nike air max ltd good trend cheap
gucci sunglasses Do not miss the nike-low prices
gucci outlet online discount designer shoes
gucci outlet 2012 is the master of them
wholesale coach The new discount
air max shoes Business casual bag cheap
coach purses on sale Boutique explosion models
wholesale coach The new discount fashion
cheap basketball jerseys See this beautiful bag
wholesale gucci shoes Affordable surprise bag
discount gucci online Come to see the lowest package
cheap authentic nfl jerseys online Fashion accessories boutique
styple says
The ESPN/Gatorade http://www.cheapstore.cc player of the year selection process recognizes athletic production and impact in the 2011 season, high academic http://www.cheapstore.cc achievement and exemplary personal character.
styple says
Russell Westbrook scored 45 points, Kevin Durant added 40 points and a season-high 17 cheap nike rebounds, and the Thunder overcame a career-high 51 points from Kevin Love to beat the Timberwolves 149-140 in double overtime Friday in Oklahoma City.
Westbrook set the tone in the second overtime, stealing the ball on Minnesota’s opening cheap gucci possession and racing to the other end for a layup that resulted in a three-point play.
Raj P says
wget key has to be updated
wget -q -O – http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key
add this one
Thanks