Lesson 7: Running the build
Run the project build process to transform the source code into a distributable component and load it into IBM® DevOps Deploy (Deploy).
- Configure an instance of Deploy and the Build agent that you use in the tutorial project can access it.
- Create an Deploy integration that identifies the Deploy server that you are using in the tutorial.
- Make sure that your instance of Deploy is running
- Create a component named Ant in Deploy.
- Create a version status in Deploy that is named Success.
- Checks out source material from the GitHub repository.
- Uses Ant to build the project artifacts.
- Runs JUnit tests on the build process.
- Loads the artifacts into an Deploy component.
- Assigns a status of Success to the component in Deploy.
Typically when you run a build, you can use several run-time
properties. The number of properties depends on the template. In the case of the tutorial
project, the Ant Targets property
affects the build’s outcome. If you accept the ${p:?default.ant.targets} default value for the Ant Targets property, the build process
uses the main junit-batch value that you
defined in the previous lesson. You can overwrite the default value with one of your own,
but for the tutorial accept the default value. Another target is discussed later in this
lesson.
Complete; otherwise, the
status changes to Failed. The project's
Main tab contains information
about the builds that the project generated. To see information about a build, click the
ID for the build life. A completed
build of the tutorial project is shown in this figure:

The tutorial project is configured to run JUnit tests. To see
the types of reports that are created when a build fails, run the build again, but use the
main junit-batch-with-failures target in
the Ant Targets field. This target
automatically fails on the Ant Build step in the Ant Build Job, and generates numerous JUnit
reports.
To see the JUnit test results, open the Tests tab for the build.
Lesson checkpoint
In this lesson, you ran a build of the tutorial project and examined its progress, tests, and final output.
In this lesson, you ran a build for the project that you created in the tutorial. The build created artifacts that were loaded into an Deploy component version and assigned a status of Success. Finally, the build created JUnit reports that are available on the Tests tab of the build life.


