Creating a build definition

You can create Jazz™ build definitions that are based on various build templates, such as Ant, command line, or Maven. This topic describes how to create and configure a command line definition for a build script. If you create a build definition using the other build templates, the steps are similar.
Before you begin
You are logged in as a regular user. You defined a repository connection and you have an existing build script or command.
About this task
To create a build definition:
  1. In the Team Artifacts view, expand the project folder.
  2. Right-click Builds; then click New Build Definition.
  3. In the New Build Definition wizard, on the New Build Definition page, accept the defaults and click Next.
  4. On the General Information page, in the Available build templates pane, select Command Line - Jazz Build Engine and click Next.
  5. Optional: If you use Rational Team Concert™ source control, on the Pre-build page, select Jazz Source Control and click Next.
  6. On the Additional Configuration page, ensure that all options are selected and click Finish.
  7. In the Build Definition editor, click the Command Line tab.
  8. In the Command field, type the command that invokes your build script.
  9. Optional: To schedule builds, complete the following steps:
    1. Click the Schedule tab.
    2. To enable build scheduling, under Schedule, select Enable.
    3. In the Build Time pane, specify either continuous build intervals in minutes, or a specific build time.
    4. In the Build Days pane, select the days of the week that the build runs.
  10. Optional: If you selected Jazz Source Control in Step 5, complete the following steps:
    1. Click the Jazz Source Control tab.
    2. To specify a repository workspace, in the Build workspace pane, click Create.
    3. In the New Repository Workspace Wizard, on the Select a stream page, select Flow with a stream and in the lower pane, select the repository stream that you want to build from. This selection enables the repository workspace to accept changes from the stream.
    4. Click Next.
    5. On the New Repository Workspace page, in the Repository Workspace Name field, rename the repository workspace and click Next.
    6. On the Components to Add page, ensure that your component is selected.
    7. Ensure that the Load repository workspace after creation check box is cleared and click Finish.
    8. To specify a build user for the build workspace, in the Workspace Owner dialog box, to open the workspace, click Open Workspace.
    9. In the Repository Workspace editor, in the Owned by field, browse to the location of your special-purpose build user.
    10. Click Save.
    11. In the Build Definition editor, in the Load Options pane, in the Load directory field, type the path to the directory on the build machine where workspace files should be loaded.
    12. Optional: To define a subset of component files and folders for the build to load, in the Component load rules field, type the path to the component load rules file.
  11. Click Save.

Feedback

Did this help? You can provide feedback at Jazz.net (registration required): Comment in the forums or submit a bug