diff --git a/BuildHelpers/Public/Get-BuildEnvironment.ps1 b/BuildHelpers/Public/Get-BuildEnvironment.ps1 index 71f27a8..63cc14a 100644 --- a/BuildHelpers/Public/Get-BuildEnvironment.ps1 +++ b/BuildHelpers/Public/Get-BuildEnvironment.ps1 @@ -13,6 +13,7 @@ function Get-BuildEnvironment { ProjectPath via Get-BuildVariable BranchName via Get-BuildVariable CommitMessage via Get-BuildVariable + CommitHash via Get-BuildVariable BuildNumber via Get-BuildVariable ProjectName via Get-ProjectName PSModuleManifest via Get-PSModuleManifest @@ -100,6 +101,7 @@ function Get-BuildEnvironment { ProjectPath = ${Build.Vars}.ProjectPath BranchName = ${Build.Vars}.BranchName CommitMessage = ${Build.Vars}.CommitMessage + CommitHash = ${Build.Vars}.CommitHash BuildNumber = ${Build.Vars}.BuildNumber ProjectName = ${Build.ProjectName} PSModuleManifest = ${Build.ManifestPath}