如何用Jenkins/Hudson自动构建OpenELEC
?
?
http://openelec.tv/forum/20-development-discussion/16247-how-to-build-openelec-using-hudsonjenkins-ci-continuous-integration-server#36754
?
Here are the steps that I took to get Hudson/Jenkins (I moved to Jenkins as it is updated more frequently) up and running in n Ubuntu 11.04 x64 Hyper-V VM. This tutorial assumes you already know how to set up Ubuntu to build openelec...if not, search on here for a guide on what you need. This guide should also work on VMware Virtual Machines, but I'm using Hyper V.
1.)Install Ubuntu Server Choosing Tomcat, SSH, and optionally Samba (if you want to pull files from windows). After you have Ubuntu installed, follow the directions here on how to get Ubuntu set up for hyper-v.
1a.) Configure Ubuntu for building. you can use the following command:


c.) Make sure you select "Build a free-style software project" and then click "OK"d.) Enter the following information, in the correct boxes?
branches to build: master
Under "Build" click "add build step" and select "execute Shell"
Note: you'll need to make a shell script and put it somewhere, like your /home/user directory. For a simple build script, you can use something like the following:call it something like "buildion64.sh" or whatever, give it +x permissions by chmoding +x, and remember where you saved it. In the screenshot above, you can see I entered it already, you'll have to enter yours just like I did, where it says "sh /home/<user>/blah.sh"
That's pretty much all you need to get it up and running. Once you save your Job, you can create new ones. If you install the "template" plugin, you can use previously created jobs to fast-make new ones. Make sure you setup a .sh script to build each project you want. One major note. This by default will create separate folders for EACH build you make, so if you go and build 6 different versions (like I do) it's going to clone the git project 6 times. That will take up a lot of disk space, so you may want to go in to your advanced project properties (click the button) and set the workspace to be the same, such as mine: