Skip to content

Commit

Permalink
Log telemetry for override scripts (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
aholstrup1 authored Oct 25, 2024
1 parent 5bb4f65 commit e12867d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Actions/RunPipeline/RunPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $projectPath = $null

try {
. (Join-Path -Path $PSScriptRoot -ChildPath "..\AL-Go-Helper.ps1" -Resolve)
Import-Module (Join-Path $PSScriptRoot '..\TelemetryHelper.psm1' -Resolve)
DownloadAndImportBcContainerHelper

if ($isWindows) {
Expand Down Expand Up @@ -255,6 +256,8 @@ try {
$scriptPath = Join-Path $ALGoFolderName "$ScriptName.ps1"
if (Test-Path -Path $scriptPath -Type Leaf) {
Write-Host "Add override for $scriptName"
Trace-Information -Message "Using override for $scriptName"

$runAlPipelineParams += @{
"$scriptName" = (Get-Command $scriptPath | Select-Object -ExpandProperty ScriptBlock)
}
Expand Down

0 comments on commit e12867d

Please sign in to comment.