A source template is a reusable source code configuration that defines a source-code
build type. Source templates can be used by any project that requires the same source
type.
Before you begin
Ensure that you installed the Git source-type plug-in before you start this lesson.
About this task
In this lesson, you define a Git source configuration that the tutorial project
uses.
Procedure
- On the IBM® UrbanCode Build dashboard, click Templates, click Source,
and then click Create.
- In the New Source Config Template dialog, in the Source
Type list, select Git. All installed source-type plug-ins are listed.
- Click Select. Fields that are related to the selected source type are displayed.
- In the Name field, type GitHub.
- In the Working Directory Script list, select Default
Workflow Directory.
- In the Remote URL field, type ${p:remote.url}. This value refers to a property that you create in the next section. You supply the property
value when you configure the project.
- In the Remote Name field, type ${p:remote.name}.
- In the Branch field, type ${p:branch}.
- Click Save.
Results
The
GitHub source template is listed along with the other source
templates on the
Source Templates tab.