Posts

Showing posts with the label Build

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 ...

Continuous Build with Jenkins on Windows with Tomcat, github, Ant and Eclipse

Image
Continuous Build with Jenkins with Tomcat, github, Ant and Eclipse A quick look at setting up a Jenkins job to automatically build and deploy a Dynamic Web Project. For Windows here is what you need: Tomcat or another web container Ensure the default ports are changed, for my examples I used 8787 for tomcat Tomcat is installed and running http://tomcat.apache.org/tomcat-7.0-doc/ Eclipse with a github plugin see my previous post  http://straightforwardit.blogspot.com/2011/11/setting-up-eclipse-for-github.html You have a Java project checked into github.com If not,  https://github.com/sfbishop/TestProject  is accessible A github account (see github.com) Remember to setup the SSH keys Jenkins (see  http://jenkins-ci.org/ )  Download the lastest war file github client software http://help.github.com/win-set-up-git/ Start Jenkins  java -jar jenkins.war Visit  http://localhost:8080/  to access Jenkins Install Jenkins as a service ...