mirror of
https://github.com/azaion/annotations.git
synced 2026-04-23 01:36:30 +00:00
pipelines zip and gdrive upload
updated
This commit is contained in:
@@ -44,6 +44,9 @@ pipeline {
|
||||
}
|
||||
''').trim()
|
||||
|
||||
// Debug output to verify the response from the powershell script
|
||||
echo "PowerShell output: ${output}"
|
||||
|
||||
def match = output =~ /::SET-ENV::LATEST_ZIP_FILENAME=(.+)/
|
||||
if (!match || !match[0][1]?.trim()) {
|
||||
echo "⚠️ No ZIP files matching the pattern were found. Skipping upload and cleanup stages."
|
||||
@@ -60,7 +63,10 @@ pipeline {
|
||||
|
||||
stage('Upload If Not Exists & Always Remove Local') {
|
||||
when {
|
||||
expression { return env.LATEST_ZIP_FILENAME?.trim() }
|
||||
expression {
|
||||
echo "LATEST_ZIP_FILENAME is: '${env.LATEST_ZIP_FILENAME}'" // Debug output
|
||||
return env.LATEST_ZIP_FILENAME?.trim()
|
||||
}
|
||||
}
|
||||
steps {
|
||||
echo "Checking Google Drive for existing ZIP and uploading if needed..."
|
||||
@@ -95,7 +101,10 @@ pipeline {
|
||||
|
||||
stage('Cleanup Older Files on Google Drive') {
|
||||
when {
|
||||
expression { return env.LATEST_ZIP_FILENAME?.trim() }
|
||||
expression {
|
||||
echo "LATEST_ZIP_FILENAME is: '${env.LATEST_ZIP_FILENAME}'" // Debug output
|
||||
return env.LATEST_ZIP_FILENAME?.trim()
|
||||
}
|
||||
}
|
||||
steps {
|
||||
echo "Cleaning up older files on Google Drive..."
|
||||
|
||||
Reference in New Issue
Block a user