...
You can either set default values by simple assignment, in which case all projects will inherit the same values when Git is selected for SCM Type. Another option can be to use if statement to check for GITInstanceCode and setup different values based on the GIT instance selected by user. The second option provides a better approach if you have more than one Git repository in your environment.
Default Script Variables
Field Name | Type | Description |
---|---|---|
GITInstanceCode | String | The default SCM Instance Code for SCM sources. |
BranchScript | String | The default value/script for Branch Script of SCM sources. |
TagScript | String | The default value/script for Tag Script of SCM sources. |
SparseCheckoutFoldersScript | String | The default value/script for SparseCheckout Folder of SCM sources. |
CheckOutFolderScript | String | The default value/script for Checkout Folder of SCM sources. |
...