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