cloneProjectSources

This operation is similar to clone, except it does not require any inputs, as values are derived from Project SCM Configurations.

Inputs

Input Name

Input Code

Required

Description

Input Name

Input Code

Required

Description

Treeless Clone

FDGIT_INP_TREELESS_CLONE

No

Treeless clone (--filter=tree:0) is helpful for automated builds where cloned repository is discarded after build.

Don’t use this option if you intend to view history or push changes.

May lead to smaller and faster cloning depending on your git provider.

Artifacts

This operation doesn't consume or produce any artifacts.

Endpoint Selection

This operation delegates endpoint selection to the workflow developer. The workflow editor will default the selection to "All", which selects all available endpoints associated to the target.

Selecting a specific resource will result in selection of endpoints associated to the target which have that resource defined.

Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.

Special Considerations

The cloneProjectSources operation will perform a shallow clone using a depth value of 100. Revision numbers are captured by FlexDeploy prior to submit of build workflow (FlexDeploy will capture latest revision for build). If revision is not found in shallow clone copy, then plugin will gradually clone larger depth till 500. Branch, Sparse checkout folder and destination folder are used as configured in Project SCM configuration. Keep note that this operation will perform a checkout of the captured revision when the build was triggered. This ensures that the build code used corresponds to the FlexDeploy project version. The checked-out code is suitable for tagging and building but is not suitable to commit and push back.

Below are the values that are used for the operation.

 

The following macros are not currently supported in the footer:
  • style