-
Notifications
You must be signed in to change notification settings - Fork 7
Available Variables
Jake Ginnivan edited this page Dec 1, 2013
·
1 revision
Note: The variable names will have the _
replaced with a .
in TeamCity.
- Without tag (on master)
- GitHubFlowVersion_FullSemVer (e.g.
1.2.3+004
) - GitHubFlowVersion_SemVer (e.g.
1.2.3
) - GitHubFlowVersion_AssemblySemVer (e.g.
1.2.3.0
) - GitHubFlowVersion_FourPartVersion (e.g.
1.2.3.4
) - GitHubFlowVersion_NumCommitsSinceRelease (e.g.
4
) - GitHubFlowVersion_Major (e.g.
1
) - GitHubFlowVersion_Minor (e.g.
2
) - GitHubFlowVersion_Patch (e.g.
3
) - GitHubFlowVersion_NumCommitsSinceRelease (e.g.
4
) - GitHubFlowVersion_Tag (e.g. ``)
- GitHubFlowVersion_FullSemVer (e.g.
- With tag (on a branch)
- GitHubFlowVersion_FullSemVer (e.g.
1.2.3-alpha+004
) - GitHubFlowVersion_SemVer (e.g.
1.2.3-alpha
) - GitHubFlowVersion_AssemblySemVer (e.g.
1.2.3.0
) - GitHubFlowVersion_FourPartVersion (e.g.
1.2.3.4
) - GitHubFlowVersion_NumCommitsSinceRelease (e.g.
4
) - GitHubFlowVersion_Major (e.g.
1
) - GitHubFlowVersion_Minor (e.g.
2
) - GitHubFlowVersion_Patch (e.g.
3
) - GitHubFlowVersion_NumCommitsSinceRelease (e.g.
4
) - GitHubFlowVersion_Tag (e.g.
alpha
)
- GitHubFlowVersion_FullSemVer (e.g.
- With tag (on a pull request branch)
- GitHubFlowVersion_FullSemVer (e.g.
1.2.3-PullRequest20+004
) - GitHubFlowVersion_SemVer (e.g.
1.2.3-PullRequest20
) - GitHubFlowVersion_AssemblySemVer (e.g.
1.2.3.0
) - GitHubFlowVersion_FourPartVersion (e.g.
1.2.3.4
) - GitHubFlowVersion_NumCommitsSinceRelease (e.g.
4
) - GitHubFlowVersion_Major (e.g.
1
) - GitHubFlowVersion_Minor (e.g.
2
) - GitHubFlowVersion_Patch (e.g.
3
) - GitHubFlowVersion_NumCommitsSinceRelease (e.g.
4
) - GitHubFlowVersion_Tag (e.g.
PullRequest20
)
- GitHubFlowVersion_FullSemVer (e.g.
Further documentation about these variables is available at https://github.com/JakeGinnivan/GitHubFlowVersion/blob/master/src/GitHubFlowVersion.Tests/VariableProviderTests.cs (the variable provider test).