Skip to content

Commit

Permalink
Merge pull request #22248 from edsantiago/windows-perl-is-in-vms
Browse files Browse the repository at this point in the history
Windows: clean up temporary perl install
  • Loading branch information
openshift-merge-bot[bot] authored Apr 4, 2024
2 parents ff7a3dc + ff133a5 commit 3c71471
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions contrib/cirrus/win-lib.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,11 @@ if ($Env:CI -eq "true") {
Remove-Item Env:\CIRRUS_PR_BODY -ErrorAction:Ignore
}

function Install-Perl-If-Required {
if (-not (Get-Command perl -ErrorAction SilentlyContinue)) {
Write-Host "`nInstalling Perl as it is required to use logformatter"
choco install --no-progress --confirm --acceptlicense --nocolor StrawberryPerl
Write-Host "`nAdd perl to the PATH"
Set-Item "Env:PATH" "$Env:PATH;C:\Strawberry\perl\bin"
}
}

function Invoke-Logformatter {
param (
[Collections.ArrayList] $unformattedLog
)

Install-Perl-If-Required

Write-Host "Invoking Logformatter"
$logFormatterInput = @('/define.gitCommit=' + $(git rev-parse HEAD)) + $unformattedLog
$logformatterPath = "$PSScriptRoot\logformatter"
Expand Down

0 comments on commit 3c71471

Please sign in to comment.