From 87a235ed1d53e07eb2cfb5ce9194f154022a6f82 Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Mon, 4 May 2026 22:08:32 -0400 Subject: [PATCH] Use ZipFile.CreateFromDirectory for reliable subdirectory inclusion in zip --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 06ba6a7..149a4ce 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,7 +41,7 @@ pipeline { stage('Deploy to Azure') { steps { - bat 'powershell -Command "Compress-Archive -Path publish\\* -DestinationPath deploy.zip -Force"' + bat 'powershell -Command "Add-Type -Assembly System.IO.Compression.FileSystem; if (Test-Path deploy.zip) { Remove-Item deploy.zip }; [System.IO.Compression.ZipFile]::CreateFromDirectory(\'publish\', \'deploy.zip\')"' withCredentials([azureServicePrincipal( credentialsId: 'azure-pcl', subscriptionIdVariable: 'AZ_SUB_ID',