Follow this page! | Setup the Freemind project in BuildForge |
|
|
|
| Sunday, 24 January 2010 18:59 |
|
This articles shows the creation of a project for the opensource software Freemind in BuildForge, with all associated steps. We'll assume there you have access to the Management Console, and that an agent has already be installed somewhere (either on localhost or remote host). Create a selector We will need a selector to create a project, but if BuildForge has just been installed there should be none available in the interface. You can either import the sample projects with their selectors, connectors, etc. or create your own with the guidelines provided in this article: how to create a selector for your host. Create an environment We'll need to set the JAVA_HOME environment variable to execute the ant build. For this we'll define a new environment named "Ant 1.7.1 Environment", and add a new environment variable named JAVA_HOME with value "/usr/lib/jvm/java-6-openjdk/".
Create a project Go in "Project -> Add Project".
Fill in the following information:
Click Save. BuildForge shows you the steps definition dialog, where we can add steps to get, build and test our project.
Add steps to the project Steps are atomic actions to be executed in our process. For our project, we'll define two steps:
Click on "Add step" on top. The form has the following information:
Click "Save step", then "Add step". Fill in the values for the second step "Build sources": ![]()
Click Save.
Run the job Go to Projects, and click on the green arrow next to our Ant 1.7.1 project. This triggers a build in background. Go to the Jobs section, and in the list of jobs look for the last build we executed. Click on its name.
Analyse results By clicking on the steps, you'll get a more detailed log for the execution with parameters, environment variables, commands executed and output. The "Get sources" step shows the svn log and all files retrieved during checkout.
Full log is attached to this article: bf_sucess_get_sources.txt. The "Build sources" step shows the ant log. ![]()
Full log is attached to this article: bf_sucess_build.txt. Notice the JAVA_HOME variable is set before the step execution. |