...
You can either set default values by simple assignment, in which case all projects will inherit the values when SubVersion is selected for SCM Type. Another option can be to use if statement to check for SVNInstanceCode and setup different values based on the SVN instance selected by user. The second option provides a better approach if you have more than one repository and the structure of folders may be different among them. See Figure 17.32 for sample default script and Figure 17.33 for available default script variables.
Available Fields and their descriptions
Field Name | Type | Description |
---|---|---|
SVNInstanceCode | String | The default SCM Instance Code for SCM sources. |
TrunkScript | String | The default value/script for Trunk Script of 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. |
CheckoutFolderScript | String | The default value/script for Checkout Folder of SCM sources. |