Before you can run the tutorial project, you must configure
your Build and DevOps Deploy environments.
Before you begin the tutorial, make sure that you
meet the Prerequisites.
To complete the tutorial, you must have an
installation of Build and IBM® DevOps Deploy (Deploy). Your Build agent must have access to the Deploy server.
To prepare the tutorial
system.
-
Prepare a computer for use as the target system.
-
Install the plug-ins that are used in the tutorial.
-
Typically, agents are not installed on the same
computer where the Build server is
located. For the tutorial, installing the agent on the computer where the server is
located is fine.
-
Configure the agent.
Your agent must be included in the list of
configured agents on the Agents page with a status of Online.
-
Create an agent pool and add the installed agent to
it.
-
Install the open source tool Git on the computer where the
Build agent is located.
Add the home directory for the tool to the
PATH variable on the target
system.
Note: The tutorial also requires Ant. Ant is installed with
the agent when the agent is installed.
-
Create the artifact set used by the tutorial by completing
these steps:
-
From the Build dashboard, click System, and then click Artifact Sets.
-
In the Artifact Sets tab, click Create New Artifact Set.
-
In the New Artifact Set dialog box, in
the Name field, type
dist.
-
Click Save.
-
Install Deploy.
You must know the version number of the server
because the
Deploy plug-in works
differently for versions before 6.1. The
Deploy server must be accessible by the
Build agent. When the tutorial project runs,
the agent communicates with the
Deploy REST
API.
Note: The Deploy
server must be running when you run the tutorial project.
-
Configure an
integration with the Deploy server
you installed in the previous step. To complete the configuration, you need the URL of the
Deploy server.
-
In your Deploy installation, create a component that
is named Ant.
When you create the component, provide the
following property values:
- Component
Type: Standard
- Source
Configuration Type: none
You can accept the default values for the other properties.
Note: To complete this step, you need an
Deploy account with, at a minimum,
permission to view, edit, and create components. If you have your own component, you can
use that. However, the tutorial uses the name of the component in one of its properties
and you will have to substitute the name of your component for the name used in the
tutorial. See
Prerequisites.
-
In your Deploy installation, create a version status
and name it Success.
The tutorial project assigns this status to the
component version that it creates in
Deploy. Make sure that you create a version status and not an inventory or snapshot status.
Note: To complete this step, you need an account with access to
the
Deploy
Settings page. See
Prerequisites.
Your Build environment is ready to being the
tutorial.The tutorial project is also available in a file that you can
download and import. To import the tutorial project, follow these steps:
- Navigate your browser to the file repository URL:http://download.boulder.ibm.com/ibmdl/pub/software/rationalsdp/documentation/product_doc/UrbanCode/uBuild/.
- Download the file named Ant.xml.
- On the Build
Project page, click
Import, and then select the
downloaded file.
Note: Make sure that you install the plug-ins
described earlier in this topic before you import the file.
- In the Import window, click Import. The server imports the project. The server does not import
plug-ins when it imports a project, so you still need to install the plug-ins described
earlier in this topic.