2011 m. vasario 19 d.

Configuring Hudson to use Maven projects from CVS on Windows

TortoiseCVS (and Hudson) on Windows uses CVSNT for interacting with CVS server. If you want that Hudson would not ask for password when updating code, you should first login to your CVS server manually (CVSNT creates a key in registry with encoded password) and later copy this entry for all users (because Apache Tomcat with Hudson deployed in it works on SYSTEM user).

1. Checkout sample code to trigger CVSNT store password in registry:image
After pressing “Fetch list” prompt for password is shown:
image
The entry for user is created in Windows Registry.
2. Copy registry entry:
Open regedit and open the key HKEY_CURRENT_USER\Software\Cvsnt\cvspass and you should see something like this:
image
Create the same entry in HKEY_USERS\.DEFAULT\Software\Cvsnt\cvspass (regedit does not allow Copy/Paste, so you should create all entries manually)
3. Configure Hudson project
Enter CVS root - :pserver:<username>@<server>/<module path>
image

Tomcat 6.x memory settings on Windows Server 2008 X64 bit

Open regedit (Start->Run enter regedit and press enter). Find this key:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\Tomcat6\Parameters\Java

Double click on “Options” name and append with these parameters:

-XX:MaxPermSize=394M
-Xms256m
-Xmx512m

image

Restart “Apache Tomcat” service.