diff --git a/build/jenkins/GDriveUpload b/build/jenkins/GDriveUpload index b27a105..8cd44f6 100644 --- a/build/jenkins/GDriveUpload +++ b/build/jenkins/GDriveUpload @@ -5,8 +5,11 @@ pipeline { git 'Default' } + parameters { + string(name: 'GOOGLE_DRIVE_FOLDER', defaultValue: 'AzaionSuiteBuilds', description: 'The folder on Google Drive where the build will be uploaded.') + } + environment { - GOOGLE_DRIVE_UPLOAD_JOB_NAME = 'AzaionSuiteBuilds' // <<== Update this 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' # 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 """ } }