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