Posts

Showing posts from March, 2012

SVN to Hudson/Jenkins - Repository Hooks

Image
While you can set Hudson/Jenkins to poll SVN at specific times an alternative is to let SVN inform Hudson when a new change has been committed to the repository. Requirements: You will need access to the server that hosts your SVN repository. You have a project setup and configured in Hudson. Adding the SVN Plugin The following Hudson plugin is installed, version 1.20 for this example. From the Hudson Console: Click Manage Hudson-Manage Plugins Ensure the Subversion Plugin is added. Adding the SVN Hook to SVN Once the plugin has been added its time to update the SVN hook. Using a text editor, VM or VIM edit the "post-commit" file in your SVN repository hooks directory. An example based on the "Oracle Virutal Developer Days VM" Repository directory: /home/oracle/labs/Dev_labs/svn_repos/otnvdd/hooks File: post-commit An sample "post-commit" file: Verify your changes: Once you have the SVN hook in place, its time to make a change ...

Setting up SVN on Apache on Windows

Image
As part of getting some new members up to speed I needed create an SVN repository for project related check-in. I decided to go with Apache SVN which is easy to setup on Apache. Installation the following software Apache HTTP Server 2.2.1 http://httpd.apache.org/ Apache Subverion - 1.7.1 Win32Svn (32-bit client, server and bindings, MSI and ZIPs; maintained by David Darj) http://subversion.apache.org/packages.html Reboot to ensure paths are set correctly Apache Installation note Using port 80 it should install as a service to ensure SVN is active on restart Creating a repository on the Server Copy required modules Copy the files mod_authz_svn.so and mod_dav_svn.so Configure Apache httpd.conf In the modules section ensure the following setting exist Create and add user(s) to the authfile Connect and Confirm using IE, Chrome or FireFox Setting up the standard directories Checkout the repository using TortiseSVN or a command line tool Create the follow...