It's been a couple months now since I blogged about getting started with Jenkins and ColdFusion, so I wanted to make a point of writing a follow-up. Automation is going to save me a lot of time, so it's time to get cracking!
Since I'm working on a Windows machine (Win 7 to be precise - got a new laptop last month!), I follwed the recommendation on the jenkins-ci.org website which was to download the native package. After extracting the .ZIP file to my desktop the installation was really straightforward:
After completing the installation and clicking the "Finish" button a new browser window opens which takes you directly to the Jenkins Dashboard - note the port 8080, not the same as ColdFusion (8500).
Voilà! Now to install a couple more plugins and we'll be ready to rock with continuous integration! As a side note I found it interesting that there's no database created. I thought that was pretty cool, because I expected Jenkins to keep track of what it's doing in some sort of datasource. It doesn't though. It simply runs the scripts you specify, and the instructions you give it are stored in an XML file. This post by Mike Christianson on Stack Overflow gives you the details if you're so inclined.
Since I'm using Github for source control I wanted to add the Github plugin to Jenkins. In my previous post I linked to a general Git plugin (which you can use), but I actually found it much easier to install the Github-specific plugin from within Jenkins itself. Here's how that works:
From the Jenkins Dashboard, click the Manage Jenkins link, and then the Manage Plugins link (wow, that's intuitive!).
Next, select the Available tab and type "Git" in the filter (top right). You'll see the Github plugin as the fifth item on the list. Check the box and click Install Without Restart.
Jenkins will install the plugin for you, all you need to do is make sure to check the box to have Jenkins restart after installing the plugin.
Jenkins will restart, and then your plugin is ready to go! Repeat these steps to install the Ant plugin if it's not already installed.
That's it for this time. Next time we'll look at how to use Ant to get Mr. Jenkins to do your evil bidding!