Lesson 3: Creating a source template
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.
Creating properties for the source template
Define the properties that you referred to 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 source template that you created earlier in the lesson.
- Click Properties, and then click Create.
-
Create the
remote.urlproperty by completing these steps. -
Create the
remote.nameproperty by completing these steps.- In the Properties tab, click Create.
-
In the Name field, type
remote.name. -
In the Label field, type
Remote Name. - In the Display Type list, select Text.
- In the Value area, accept the default option Defined.
- Select the Value Required check box.
-
In the Default Value field, type
origin. - Click Save.
-
Create the
branchproperty by completing these steps.- In the Properties tab, click Create.
-
In the Name field, type
branch. -
In the Label field, type
Branch. - In the Display Type list, select Text.
- In the Value area, accept the default option Defined.
- Select the Required check box.
-
In the Default Value field, type
master. - Click Save.
Lesson checkpoint
In this lesson, you created a source template and defined properties that identify the source material that is used in the build.
The gitHubSource source template properties are shown in this figure:

