mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:36:31 +00:00
gdrive update
This commit is contained in:
@@ -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
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user