Click here to Skip to main content
13,554,127 members
Click here to Skip to main content
Add your own
alternative version


16 bookmarked
Posted 18 Sep 2007

R2build 1.0 RC1 Published for Beta Test (Continuous Integration/Daily Build Tool)

, 18 Sep 2007
Rate this:
Please Sign up or sign in to vote.
R2build is a continuous Integration (or daily build/night build/build automation) tool, establishes the night build in minutes, only by adding build step node and linking the node. It supports lots of development tools: sourcecontrol, compiler, packaging, FTP, mail, autotest.
  • Get the latest build here


R2build system is a tool/Framework to establish your daily build (or nightly build, or build automation, or continuous integration system) in a very easy manner. It includes, but is not limited to, plug-ins for email notification, FTP, various Installer packaging tools, Ant/Nant/.NET/Delphi/C++ Builder, and various source control tools.

R2Build is licensed under the terms of the GNU General Public License. It adheres to the open source model and therefore makes the source code freely available.

First Glance

Screenshot - R2build10Beta_1.jpg

The main application includes the following sub windows:

Tool Box Window

This contains most of the tools that are useful for building your product. It is populated by a plug-in config XML file. You can also create your own plugin XML to enable a new tool. By dragging an icon from the tool box, you can create a new node in the flow graph view.

Build Setting Flowgraph View

This is a canvas to hold the build setting node and link. Build setting node is a one build step, you can add a node by dragging a node from the toolbox onto this canvas. You can double click to change the node parameters. You can also link a node to indicate the transition after performing one step. A link is a directional line with an arrow, which means the direction of transition. Using nodes and links, you can draw an automation flow graph (Build Settings). You can set the start node for this graph.

Log Window

When you run the automation flow graph, the log will be displayed here.

Variable Window

You can define a variable which can be used in node setting parameters. All the variables are displayed in the variable windows. You can add/delete using "+" or "-" buttons.

Application Tool Bar

It includes almost all the functions, File operations (Save/Open), Flow graph drawing tool (connect node, add comment text), and Debug/Run tools.

Configuration after Installation

The most important configuration is setting up all the software tools you need in R2Build. Select menu: Project Settings->Setup Application Paths (or Setup Application Paths button in Application tool bar).

After you install R2Build, it ships with a default setting for all the required software tools, but these settings are the default installation location of the tool. You should check and point to your installed location. For example, for visual source safe, the default installation location is C:\program files\Microsoft visual studio\common\vss\win32\ss.exe, but if on your build server, you installed to D:\VSS\..., then you should select visual source safe: ss.exe item in the dialog, double click or click "set path.." button to choose your dir of ss.exe.

NOTE: R2Build's search rule for tools: first search the dir you configured, if you cannot find it, then use the system PATH env to search it again, if you still cannot find the tool, it will popup a dialog to let you input the correct path to the tool when you add the node.

Create a New Build Project

  1. Click the "Create new file" button in the "Application tool bar" to create a new build flow graph.
  2. Setup required global variable: In the Variable window, double click BUILDLOGFILENAME to setup your log file (log file will store all the output generated by all the plug-in tools when running the build).
    You can also add other global variables for this build, to avoid inputting it many times. For example, you can add a PROJECTDIR global variable to indicate the project's root dir. The next time you use this parameter, the correct format will be $PROJECTDIR. To use a variable, you should add a $ before the variable. In order to add a variable in the variable edit dialog, you only need the real variable name.
  3. Add Node: Drag and drop an icon from the toolbox onto the build flow graph view, then double click to set up the parameter of this node. Usually, the first step is getting the latest code from the source control software.
  4. Add Link: Add other nodes, then add the transition link. First click "Add Connection" button, then select the first node, and then drag to draw a line to the second node, then release the mouse (just like you draw a line in Microsoft Paint), the arrow means that after performing the first node, it will go on to perform the second node. You can also setup the transition condition, by double-clicking the line, a dialog will popup to let you input the condition.
    For example: If there is a line from "Perforce get latest code" to "Delete files", then the transition condition is "return value equal to Success". This means that when Perforce gets the latest code finished without any error, then do the next step, "Delete file".
  5. Setup start node: Start node is the first node to be executed while you run the build flow graph. Select a node, then click "Set Start Node" button.
  6. Save build flow graph: Click "Save" button, to save your build flow graph

Run Build Project

  1. Run without debug: Click "Run" button in the application toolbar, the current build project will start from "Start Node", all the log will be displayed in the log window (at the same time, save to $ BUILDLOGFILENAME)
  2. Run with debug: Click "Run Debug" button in the application toolbar, the current build project will be run in debug mode, it will break at the breakpoint
  3. Set/remove breakpoints: Select the node, click the "Add breakpoint" button in the application toolbar. To remove, select the node with breakpoint, click "Remove breakpoint", or click "Remove all breakpoints" to remove all the breakpoints from the current build project.

Setup Nightly Build

  1. Command line options: R2build supports command line options, the format is:
    R2Build.exe [-r][-q] <buildfilename> 
    -r means run the build project file
    -q means quit R2Build application after the build is completed
    Buildfilename means the full path name of the .r2p file(build project file)
    You can set up the nightly build using these two command line options.
  2. Setup Scheduled Tasks in Windows
    In Control panel->Scheduled tasks->Add scheduled task, in the wizard, select the R2Build.exe, and input the parameter you want. After the wizard is closed, double click the newly created tasks called R2build, change the run parameter to "C:\Program Files\R2Build\R2Build.exe" -r E:\Build\R2Build.r2p

    Change the italic part according to your settings.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

No Biography provided

You may also be interested in...


Comments and Discussions

GeneralC# based projects Pin
wshcdr24-Mar-09 23:05
memberwshcdr24-Mar-09 23:05 
GeneralRe: C# based projects Pin
wshcdr24-Mar-09 23:20
memberwshcdr24-Mar-09 23:20 
AnswerRe: C# based projects Pin
r2build25-Mar-09 5:04
memberr2build25-Mar-09 5:04 
NewsR2build 1.1 is released Pin
r2build20-Dec-07 3:31
memberr2build20-Dec-07 3:31 
GeneralR2Build RC1 Build 229 is ready for download Pin
r2build27-Sep-07 4:12
memberr2build27-Sep-07 4:12 
QuestionVS2005 integration? Pin
Hans Dietrich19-Sep-07 5:24
mvpHans Dietrich19-Sep-07 5:24 
AnswerRe: VS2005 integration? Pin
Paul A. Howes19-Sep-07 10:56
memberPaul A. Howes19-Sep-07 10:56 
AnswerRe: VS2005 integration? Pin
LuanJinfeng19-Sep-07 15:32
memberLuanJinfeng19-Sep-07 15:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.180515.1 | Last Updated 18 Sep 2007
Article Copyright 2007 by r2build
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid