Restore PATH, linux-x64 publish, and ZipFile deploy lost in merge conflict

This commit is contained in:
2026-05-04 22:19:57 -04:00
parent 444748adb7
commit b92a9f78df
Vendored
+6 -2
View File
@@ -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',