diff --git a/build/jenkins/GDriveUpload b/build/jenkins/GDriveUpload index 449261c..d5af3c7 100644 --- a/build/jenkins/GDriveUpload +++ b/build/jenkins/GDriveUpload @@ -100,9 +100,12 @@ pipeline { if (\$filesToDelete.Count -gt 0) { Write-Output "Deleting files: \$filesToDelete" + # Extract file names (without timestamps) + \$fileNamesToDelete = \$filesToDelete -replace '^\S+ ', '' + # Create a temporary file to store the list of files to delete \$tempFile = [System.IO.Path]::GetTempFileName() - \$filesToDelete | Out-File -FilePath \$tempFile -Encoding utf8 + \$fileNamesToDelete | Out-File -FilePath \$tempFile -Encoding utf8 # Use rclone to delete the files rclone delete AzaionGoogleDrive:${params.GOOGLE_DRIVE_FOLDER} --files-from \$tempFile --drive-chunk-size 64M