diff --git a/build/jenkins/zip b/build/jenkins/zip index ca62f04..413c82c 100644 --- a/build/jenkins/zip +++ b/build/jenkins/zip @@ -72,15 +72,16 @@ pipeline { Write-Host "DEBUG: End of item listing." # --- Check for existing zip files --- - Write-Host "Checking for existing zip files matching '$zipPattern'..." - $existingZips = Get-ChildItem -Path . -Include $zipPattern | Sort-Object LastWriteTime -Descending + Write-Host "Checking for existing zip files matching '$zipPattern' using -Filter..." + # Corrected: Using -Filter instead of -Include with -Path . + $existingZips = Get-ChildItem -Path . -Filter $zipPattern | Sort-Object LastWriteTime -Descending # --- Debugging: Show found zip files --- - Write-Host "DEBUG: Files found by Get-ChildItem -Path . -Include '$zipPattern':" + Write-Host "DEBUG: Files found by Get-ChildItem -Path . -Filter '$zipPattern':" if ($existingZips.Count -gt 0) { $existingZips | ForEach-Object { Write-Host "DEBUG: Found zip: $($_.Name)" } } else { - Write-Host "DEBUG: No zip files found by Get-ChildItem with pattern '$zipPattern'." + Write-Host "DEBUG: No zip files found by Get-ChildItem with pattern '$zipPattern' using -Filter." } Write-Host "DEBUG: End of found zip listing."