diff --git a/build/jenkins/zip b/build/jenkins/zip index 97d2c40..ca62f04 100644 --- a/build/jenkins/zip +++ b/build/jenkins/zip @@ -66,10 +66,25 @@ pipeline { Write-Host "Operating in directory: $(Get-Location)" + # --- Debugging: List all items in the directory --- + Write-Host "DEBUG: Listing all items in the current directory:" + Get-ChildItem -Path . | ForEach-Object { Write-Host "DEBUG: Item: $($_.FullName)" } + 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 + # --- Debugging: Show found zip files --- + Write-Host "DEBUG: Files found by Get-ChildItem -Path . -Include '$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: End of found zip listing." + + $zipFilename = "" $zipFound = $false