gdrive update

This commit is contained in:
dzaitsev
2025-05-04 14:54:08 +03:00
parent 514c275f3a
commit 5d0e49b6fd
+5 -2
View File
@@ -5,8 +5,11 @@ pipeline {
git 'Default' git 'Default'
} }
parameters {
string(name: 'GOOGLE_DRIVE_FOLDER', defaultValue: 'AzaionSuiteBuilds', description: 'The folder on Google Drive where the build will be uploaded.')
}
environment { environment {
GOOGLE_DRIVE_UPLOAD_JOB_NAME = 'AzaionSuiteBuilds' // <<== Update this
RCLONE_CONFIG = 'C:/Program Files/rclone/rclone.conf' // Ensure this points to the correct location RCLONE_CONFIG = 'C:/Program Files/rclone/rclone.conf' // Ensure this points to the correct location
} }
@@ -67,7 +70,7 @@ pipeline {
\$env:RCLONE_CONFIG = 'C:/Program Files/rclone/rclone.conf' \$env:RCLONE_CONFIG = 'C:/Program Files/rclone/rclone.conf'
# Use rclone to upload the file to Google Drive # Use rclone to upload the file to Google Drive
rclone copy "\$filePath" AzaionGoogleDrive:YourFolderNameOnGDrive --progress --drive-chunk-size 64M rclone copy "\$filePath" AzaionGoogleDrive:${params.GOOGLE_DRIVE_FOLDER} --progress --drive-chunk-size 64M
""" """
} }
} }