Configuring Hudson as CI, Part 2
- Configure Ant path in the Mangage Hudson page first
- You need to check Invoke Ant under the Build section to ask Hudson to build your Netbeans build.xml file. Else nothing will be built.
- The Build File should be relative to the workspace root, meaning you should not include the Hudson project name in the path. If your Hudson project is called ABC, and you want there is a Netbeans project underneath it called XYZ, the path should be: XYZ/build.xml ("ABC" is not inside this string)
- If your JEE server is Glassfish, you need to provide hudson with the path to the javaee.jar file, else the build will fail with "package javax.ejb not exist" error. Specify the path in the Properties sub-section in Invoke Ant section to, e.g.: "j2ee.platform.classpath=D:\\se15team2e\\Programs\\glassfish\\lib\\javaee.jar".
- Setting up NetBeans-based projects with a Continuous Integration server: http://weblogs.java.net/blog/fabriziogiudici/archive/2006/11/setting_up_netb.html
- Deploy to Glassfish and update the DB schema:
asadmin deploy --user=admin ERMS\ErmsJEE\dis\ErmsJEE.ear
cd ERMS\DBScripts
schema-export.bat