BuildMaster Documentation

Source Control - Get Latest

  • Last Modified: 2019-05-07

This is generated from the built-in components of BuildMaster 6.1.5, and may be different than what you have installed (especially if you have extensions); go to [User Icon] > Documentation within your BuildMaster instance to see exactly what operations are available.

Get Latest

Gets the latest version of code from a repository.

Script usage:

Get-Latest-Source(
	Provider: <text>,
	SourcePath: <text>,
	[ToDirectory: <text>],
	[ClearTarget: <true/false>]
);

This operation may be prefixed with SourceControl::, although this is a built-in namespace and isn't really necessary.

Arguments:

Name Format Script Usage Usage Notes
Provider name
text
Provider
This argument is required.
Source path
text
SourcePath
The path in source control to get latest from. This path is a provider-specific string that may include additional information like branch name, etc. See the documentation on inedo.com regarding the specific source control system in use. This argument is required.
To directory
text
ToDirectory
Clear target
true/false
ClearTarget
When set to true, clears the target directory before getting the files.

Example:

# get the latest MarketingPortal files from the provider named Mercurial2, using the remote URL supplied in the 
# HdarsRepo repository on the featureXYZ branch 
Get-Latest-Source(
    Provider: Mercurial2,
    From: HdarsRepo|featureXYZ:MarketingPortal/
);

Is this documentation incorrect or incomplete? Help us by contributing!

This documentation is licensed under CC-BY-SA-4.0 and stored in GitHub.