-
Notifications
You must be signed in to change notification settings - Fork 662
Closed
Description
Can we get detection and output of TC data in the executable? PSAKE works well for us as a build script and it would be great to have it detect in the same way xunit console does. Today I use the following workaround
Properties {
$VersionCalculator = (Get-ChildItem -Path Packages -File "GitFlowVersion.exe" -Recurse).FullName
}
Task CalculateVersion -Description "Calculates the version information based on current location in source control repository" {
$RawVersionInfo = Exec { [string](& $VersionCalculator) }
$VersionInfo = ConvertFrom-Json $RawVersionInfo
TeamCity-SetBuildNumber $VersionInfo.ShortVersion
}
Metadata
Metadata
Assignees
Labels
No labels