Versions Compared

Key

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

...

Variable Name

Description

ProjectName

Name of current project being built.

StreamName

Name of current stream being built.

MainStream

Evaluates to true if current stream being built is main stream.

ProjectVersion

Project version name being built.

StreamAttribute1

Attribute 1 of stream being built.

StreamAttribute2

Attribute 2 of stream being built.

StreamAttribute3

Attribute 3 of stream being built.

...

Subversion SCM Configurations

For Subversion one or more project sources can be configured with the details as described in the table below. FlexDeploy provides flexibility by supporting groovy script to define these values. Click on the expression button to include variables as part of the value. Additional sources can be added by Clicking on the Add Source button.

Defaults for SubVersion Subversion source configurations can be configured using Project Subversion Setup Defaults. This can be configured such that

...

First approach works well if you have single Subversion repository. If you have multiple Subversion repositories in your environment, then you can utilize second approach to configure project based on some criteria. You can accomplish this by placing an "if" statement within Groovy script for the defaults. With this approach all attributes in SubVersion Subversion configurations will be empty initially, and when user selects SVN Instance, configuration values will be defaulted appropriately.

Tip

In example below, if Project Name is Project1 and Stream Names are trunk and fixpack1, here is what will be actual values of various configurations.

  • Trunk Path (used only for main stream) - /trunk/HumanResources/Project1
  • Branch Path (used for all streams other than main) - /branches/HumandResources/Project1/fixpack1
  • Tag Path - /tags/HumanResources/Project1/1.0.0

This structure does not need to match with your Subversion repository. You just need to define Groovy scripts to match your repository structure.


Field Name

Required

Description

SVN Instance

Yes

An SCM Instance representing a Subversion repository. See Instances section of this guide to create SCM Type Instance. Refer to the Instances page for more on SCM Instances.

Trunk Path Script

Yes

Path for the trunk within selected repository.

Branch Path Script

No

Path for the branches within selected repository. Use StreamName variable to identify branch name used at runtime.

Tag Path Script

No

Path for the tag within the selected repository. Use ProjectVersion variable to specify identifier of current build.

Checkout Folder Script

Yes

Optional sub-folder to use for export/checkout operations during build workflow execution.

...