C# Class SimpleGitVersion.CIReleaseInfo

Encapsulates CI release information.
Afficher le fichier Open project: SimpleGitVersion/SGV-Net Class Usage Examples

Méthodes publiques

Свойство Type Description
BaseTag ReleaseTagVersion
BuildVersion string
BuildVersionNuGet string
Depth int

Méthodes publiques

Méthode Description
CreateNuGetZeroTimed ( string ciBuildName, System.DateTime timeRelease ) : string

Creates the ZeroTimed NuGetV2 version string.

CreateSemVerZeroTimed ( string ciBuildName, System.DateTime timeRelease, string actualBaseTag = null ) : string

Creates the ZeroTimed SemVer version string. The actualBaseTag, if not null, is appended as a suffix (Build metadata).

Private Methods

Méthode Description
CIReleaseInfo ( ReleaseTagVersion ciBaseTag, int ciBaseDepth, string ciBuildVersion, string ciBuildVersionNuGet ) : System
Create ( Commit commit, CIBranchVersionMode ciVersionMode, string ciBuildName, StringBuilder errors, CommitVersionInfo info ) : CIReleaseInfo
ToBase62 ( long number ) : string

Method Details

CreateNuGetZeroTimed() public static méthode

Creates the ZeroTimed NuGetV2 version string.
public static CreateNuGetZeroTimed ( string ciBuildName, System.DateTime timeRelease ) : string
ciBuildName string The BuildName string (typically "develop").
timeRelease System.DateTime The utc date time of the release.
Résultat string

CreateSemVerZeroTimed() public static méthode

Creates the ZeroTimed SemVer version string. The actualBaseTag, if not null, is appended as a suffix (Build metadata).
public static CreateSemVerZeroTimed ( string ciBuildName, System.DateTime timeRelease, string actualBaseTag = null ) : string
ciBuildName string The BuildName string (typically "develop").
timeRelease System.DateTime The utc date time of the release.
actualBaseTag string An optional base release that will be added as build metadata.
Résultat string

Property Details

BaseTag public_oe property

The base ReleaseTagVersion from which BuildVersion is built. It is either the the previous release or the ReleaseTagVersion.VeryFirstVersion. Null if and only if CIBuildVersion is null.
public ReleaseTagVersion,SimpleGitVersion BaseTag
Résultat ReleaseTagVersion

BuildVersion public_oe property

Not null only if we are on a branch that is enabled in RepositoryInfoOptions.Branches (either because it is the current branch or RepositoryInfoOptions.StartingBranchName specifies it), the RepositoryInfoOptions.StartingCommitSha is null or empty and there is no RepositoryInfo.ValidReleaseTag on the commit. The format is based on ReleaseTagFormat.SemVer
public string BuildVersion
Résultat string

BuildVersionNuGet public_oe property

Same as BuildVersion instead that the format is based on ReleaseTagFormat.NuGetPackage
public string BuildVersionNuGet
Résultat string

Depth public_oe property

The greatest number of commits between the current commit and the deepest occurence of BaseTag.
public int Depth
Résultat int