gdrive update

This commit is contained in:
dzaitsev
2025-05-04 15:04:04 +03:00
parent 7343e9d630
commit 7985c298a6
+4 -1
View File
@@ -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