From b92a9f78dfdc35edac50ce5eed348e086387beaf Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Mon, 4 May 2026 22:19:57 -0400 Subject: [PATCH] Restore PATH, linux-x64 publish, and ZipFile deploy lost in merge conflict --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 93bcc42..149a4ce 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,10 @@ pipeline { timestamps() } + environment { + PATH = "C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;${env.PATH}" + } + stages { stage('Checkout') { steps { @@ -31,13 +35,13 @@ pipeline { stage('Publish') { steps { - bat 'dotnet publish src\\PowderCoating.Web\\PowderCoating.Web.csproj -c Release --no-build -o publish' + bat 'dotnet publish src\\PowderCoating.Web\\PowderCoating.Web.csproj -c Release -r linux-x64 --self-contained false -o publish' } } 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',