Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.


Sample Defaults Script

...


Default Script Variables

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.