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:
- In the Team Artifacts view, expand
the project folder.
- Right-click Builds; then click New
Build Definition.
- In the New Build Definition wizard,
on the New Build Definition page, accept the
defaults and click Next.
- On the General Information page, in
the Available build templates pane, select Command
Line - Jazz Build Engine and click Next.
- Optional: If you use Rational Team Concert™ source
control,
on the Pre-build page, select Jazz
Source Control and click Next.
- On the Additional Configuration page,
ensure that all options are selected and click Finish.
- In the Build Definition editor, click
the Command Line tab.
- In the Command field, type the command
that invokes your build script.
- Optional: To schedule builds, complete the
following steps:
- Click the Schedule tab.
- To enable build scheduling, under Schedule,
select Enable.
- In the Build Time pane, specify
either continuous build intervals in minutes, or a specific build
time.
- In the Build Days pane, select
the days of the week that the build runs.
- Optional: If you selected Jazz Source Control
in Step 5, complete the following steps:
- Click the Jazz Source Control tab.
- To specify a repository workspace, in the Build
workspace pane, click Create.
- 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.
- Click Next.
- On the New Repository Workspace page,
in the Repository Workspace Name field, rename
the repository workspace and click Next.
- On the Components to Add page,
ensure that your component is selected.
- Ensure that the Load repository workspace
after creation check box is cleared and click Finish.
- To specify a build user for the build workspace, in
the Workspace Owner dialog box, to open the workspace,
click Open Workspace.
- In the Repository Workspace editor,
in the Owned by field, browse to the location
of your special-purpose build user.
- Click Save.
- 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.
- 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.
- Click Save.