diff --git a/build/jenkins/GDriveUpload b/build/jenkins/GDriveUpload index b72410c..9c3fe2d 100644 --- a/build/jenkins/GDriveUpload +++ b/build/jenkins/GDriveUpload @@ -1,5 +1,13 @@ pipeline { - agent { label 'windows' } + agent { label 'Win10-BuildMachine' } + + tools { + git 'Default' + } + + environment { + GOOGLE_DRIVE_UPLOAD_JOB_NAME = 'YourGoogleDriveUploadPipelineName' // <<== Update this + } stages { stage('Initialize Workspace') { @@ -44,14 +52,15 @@ pipeline { } } - stage('Retention on Google Drive') { + stage('Upload to Google Drive using rclone') { steps { echo "Uploading ${env.LATEST_ZIP_FILENAME} to Google Drive..." - // Example command (replace with actual upload command) powershell """ \$filePath = "C:/Jenkins/workspace/AzaionSuite/suite/${env.LATEST_ZIP_FILENAME}" - Write-Output "Would upload: \$filePath" - # Add your actual GDrive upload logic here + Write-Output "Preparing to upload: \$filePath" + + # Use rclone to upload the file to Google Drive + rclone copy "\$filePath" remote:YourFolderNameOnGDrive --progress --drive-chunk-size 64M """ } }