Lesson 4: Creating a source template
A source template is a reusable source configuration that can be used by any project that requires the same source type.
Creating properties for the source template
Define the properties you referenced in the previous section.
-
If the Source tab is not already displayed, then on the Build dashboard, click Templates, click Source, and then click the
GitHubsource template that you created earlier in the lesson. - Click Properties, and then click Create.
-
Create the
git.projectproperty by completing these steps. -
Create the
git.branchproperty by completing these steps.- On the Properties tab, click Create.
-
In the Name field, type
git.branch. -
In the Label field, type
Git Branch. -
In the Description field, type
Source branch. Leave the field blank for the master branch. - In the Display Type list, select Text.
- Leave the Default Value field blank.
- Clear the Required check box.
- Click Save.
Lesson checkpoint
In this lesson, you created a source template and defined properties that identify the source material used in the build.
The GitHub source template properties are shown in the following figure:

