In Part1, I'm going to talk about how to install & configure hudson continuous integration server.
Hudson Installing & Configuration:
Hudson Installing & Configuration:
Install Hudson as windows service (will work only if the svn is server based. Won’t work for file based svn)
- Download latest hudsonxx.war from here & start the Hudson server as: java -jar hudsonxx.war
- Make sure you have Java set in classpath wherever the Hudson server is running. Next time you will notice Hudson is started as a service. For file based SVN, remember to start the Hudson serer as: "java -jar hudsonxx.war" instead as a service, otherwise Hudson won’t recognize the file based svn URL. In case the SVN is a server based, then you can use Hudson as service.
- Refer to system configuration below. Remember to install plugin for subversion from Manage Hudson->Manage Plugins->Available (tab)->Featured-> Hudson Subversion Plug-in & install
Refer installed plugins below. You can install additional plugins for your use case. Some of the below may be not required.
- Refer below screenshots for system configurations.
System Configurations:
- Create a new Job & name it whatever you want. Click on Configure to configure the parameters for the Job
In the sample job below, I defined this build to be parametrized. This way I'm making my job flexible. If you notice, I also defined a 'CODE_REVISION' & 'MANIFEST_BUILD_VERSION' parameters below to take care of triggering build for a specific code revision. We will look at how these parameters are utilized in build script in Part 2.
Optionally for secured access for a team, configure security.
You & whoever wants to control build environment for this job would need to create account to be able to manage the job.
You can also create a batch file to be run whenever machine starts by
- Create batch file with command:
"C:\Program Files\Java\jdk1.6.0_37\bin\java" -jar C:\Oracle\Hudson\hudson-3.1.2.war
- Now copy above Hudson startup batch & startWeblogic.cmd file in windows startup folder.
For creating a ojdeploy based build script for your application proceed to Part-2
No comments:
Post a Comment