mirror of https://github.com/containers/podman.git
Windows: clean up temporary perl install
Followup to #21991. Strawberry Perl is now installed by default in CI VMs[1], so we no longer need the temporary install-perl code. [1] https://github.com/containers/automation_images/pull/337 Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
6b9b85e011
commit
ff133a544d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue