Lesson 6: Creating a project
You use projects to configure and run builds. After a build runs, projects provide a wealth of information that you can use to manage the project lifecycle and troubleshoot problems.
Before you begin
About this task
You can run builds automatically on a schedule, or you can run builds manually, as you do in the tutorial. When you start the build, the job that you created with the job template is started. The project determines which source code to use and manages dependencies. Each build generates a unique build life
As the project runs, the build life provides feedback about the build's status and generates logs that you can use to troubleshoot problems. If projects are configured to run tests, as the tutorial project is, test results are available on the Tests tab for the build life.
Procedure
- On the left navigational panel, click Projects, and then click Create.
- Select the project template that you created in Lesson 5, Git Project Template.
-
In the Name field, type
Ant.Note: The build uses the project's name to identify the HCL DevOps Deploy (Deploy) component. If you use another name for your project, make sure there is a component with the same name in Deploy. -
Click Save.
The Configuration tab for the project is displayed. You use this page to configure projects. You can also run project builds on this page. Later, you will use this page to run the tutorial project.
Configuring the project build process
A project must be associated with a build process. A project can be associated with any number of build processes.
Procedure
- Ensure that the Configuration tab for the Ant project is displayed; then, under Build Processes, click New.
-
In the New Process window, in the Template list, select Ant
Build Process, and then click Select.
The fields that you see depend on the selected template. In this case, several fields are derived from the process template that you created the previous lesson.Note: If the only template you have is the one you created earlier in the tutorial, the template is automatically selected and this step is skipped.
-
In the Name field, type
GitHub Build Process. -
In the Build Script field, accept the
build.xmlvalue.You defined the default value,build.xml, when you created the process template. -
In the Product Version field, accept the
1value.You defined the default value when you created the process template. -
In the Artifacts Base Dir field, type
dist/lib.This overrides the default value you defined earlier. -
In the Include Artifacts field, type
*.jar.This overrides the default value you defined earlier. - Leave the Exclude Artifacts field blank.
-
In the Default Ant Targets field, type
main junit-batch.You can use another target,main junit-batch-with-failureto automatically fail the Ant build step and produce a lot of JUnit test results. -
In the JUnit Report Base Dir field, type,
build/testcases/xml. - Click Save.
Results
Configuring the project source
You define a project's build source by assigning a source template to a build configuration and defining values for its properties.
Before you begin
About this task
Procedure
- Under Source Configuration, click Create.
-
In the New Source from Template dialog box, in the Source Template list, select the source
template that you created earlier, gitHubSource, and then click Select.
Note: If the only template you have is the one you created earlier in the tutorial, the template is automatically selected and this step is skipped.
-
In the Name field, type
gitHubSource. - In the Repository list, select the repository that you created earlier, GitHub.
-
In the Remote URL field, type
Serneum/ant.git.You defined this field and the next two fields when you created the source template. -
In the Remote Name field, accept the default value
origin.You defined the default value for this field when you created the source template. -
In the Branch field, type
ANT_18_BRANCH.This overrides the default value,master, you defined earlier. - Click Save.
Results

Lesson checkpoint
In this lesson, you created a project and defined a build process and a build source.
About this task
The project is constructed from the templates that you made earlier in the tutorial. All projects are built from templates. When you create a project, you identify the templates and provide property values for them. With this lesson finished, it's time to run the project.
