<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Subversion on despatches</title><link>https://icle.es/tags/subversion/</link><description>Recent content in Subversion on despatches</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 20 Jun 2025 09:25:00 +0100</lastBuildDate><atom:link href="https://icle.es/tags/subversion/index.xml" rel="self" type="application/rss+xml"/><item><title>Hudson / Jenkins and Continuous Integration [1114]</title><link>https://icle.es/2011/12/28/hudson-jenkins-and-continuous-integration-1114/</link><pubDate>Wed, 28 Dec 2011 14:51:31 +0000</pubDate><guid>https://icle.es/2011/12/28/hudson-jenkins-and-continuous-integration-1114/</guid><description>&lt;p>Fair Warning: This is more notes for me to remember and document how to do these
things rather than particularly detailed instructions. Therefore, it might be
missing sections and will assume a reasonable knowledge of hudson/jenkins and
not to mention the benefits of continuous integration and builds.&lt;/p>
&lt;p>Installing hudson / jenkins is easy enough. I deployed as part of a pre-existing
tomcat6 installation so was as simple as popping the war file into the webapps
folder. Tomcat automatically started it up without issues.&lt;/p></description><content:encoded><![CDATA[<p>Fair Warning: This is more notes for me to remember and document how to do these
things rather than particularly detailed instructions. Therefore, it might be
missing sections and will assume a reasonable knowledge of hudson/jenkins and
not to mention the benefits of continuous integration and builds.</p>
<p>Installing hudson / jenkins is easy enough. I deployed as part of a pre-existing
tomcat6 installation so was as simple as popping the war file into the webapps
folder. Tomcat automatically started it up without issues.</p>
<p>I chose to have hudson use /home/hudson as its home directory. Since I am
running an ubuntu system, I added a line into /etc/defaults/tomcat6. There are
various other ways of doing this but it was a quick fix for me.</p>
<p>You of course need to make sure the directory exists. I also popped in a .m2
folder from my home directory to save it from downloading all the various jar
files and included a settings.xml file with appropriate configurations.</p>
<p>Hudson 2.2 uses maven 3 but I use maven 3 locally as well even though the
projects pom files were built for maven 2. There doesn&rsquo;t seem to be any issues
with this setup.</p>
<p>First step is to create a new job from the home page. This asks for which type a
job you want to create. If you use maven and a standard source control, it is as
simple as choosing the first option: Build a free-style software project.</p>
<p>Give it a name and you are brought to the configuration screen. There are a
number of options here and I started with the basic set:</p>
<p>I chose Subversion for the source control management section and gave it the svn
path. There is a checkout strategy as well and I chose the one to revert and
update which I feel to be a bit cleaner.</p>
<p>I chose to poll the scm every fifteen minutes</p>
```cron
*/15 * * * *
```
<p>and saved.</p>
<p>Running the build pulled the code out of svn and stopped there. This was because
I didn&rsquo;t add a step to build / install it.</p>
<p>Go back into configure the job and add a maven 3 build step. This automatically
selected the clean install goals. Save and build now and the project was checked
out and built without issues.</p>
<p>Success!</p>
<p>There are a number of other options you can play with here but this gives you a
solid starting point.</p>
<p>Later on, I will cover the addition of various other plugins for source analysis
including findbugs and pmd.</p>
]]></content:encoded></item></channel></rss>