Build environment
Azure Devops
Tested
PS5.1/PS6core
build stage
Issue
the commit message detection code ((https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a6ff87275/BuildHelpers/Public/Get-BuildVariable.ps1#L154) ignores a provided path.
when not using the 'standard ' location, but by providing the 'path' parameter to either Get-BuildEnvironment or Get-BuildVariable, Azure Devops returns an error:
##[error]Invoke-Git : fatal: d:\a\1\s: 'd:\a\1\s' is outside repository
##[error]At C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules\BuildHelpers\2.0.9\Public\Get-BuildVariable.ps1:189
cause
Get-BuildVariable (and Get-BuildEnvironment) has a 'PATH" parameter to provide a path to the variables to detect. Yet, in the commit message part of the code, this is totally ignored by just using the detected environment values.
Although the $path variable is part of the invoke-git @IGParams part, in the Git command itself
"log --format=%B -n 1 $( (Get-Item -Path "ENV:$_").Value )"
it is not used, and thus ignored. This results in strange behavior when providing a path with these commands.
Build environment
Azure Devops
Tested
PS5.1/PS6core
build stage
Issue
the commit message detection code ((https://github.com/RamblingCookieMonster/BuildHelpers/blob/303eebee0bf92f9e086f131d89cf478a6ff87275/BuildHelpers/Public/Get-BuildVariable.ps1#L154) ignores a provided path.
when not using the 'standard ' location, but by providing the 'path' parameter to either Get-BuildEnvironment or Get-BuildVariable, Azure Devops returns an error:
cause
Get-BuildVariable (and Get-BuildEnvironment) has a 'PATH" parameter to provide a path to the variables to detect. Yet, in the commit message part of the code, this is totally ignored by just using the detected environment values.
Although the $path variable is part of the invoke-git @IGParams part, in the Git command itself
"log --format=%B -n 1 $( (Get-Item -Path "ENV:$_").Value )"it is not used, and thus ignored. This results in strange behavior when providing a path with these commands.