Restore PATH, linux-x64 publish, and ZipFile deploy lost in merge conflict
This commit is contained in:
Vendored
+6
-2
@@ -6,6 +6,10 @@ pipeline {
|
|||||||
timestamps()
|
timestamps()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
environment {
|
||||||
|
PATH = "C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;${env.PATH}"
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
@@ -31,13 +35,13 @@ pipeline {
|
|||||||
|
|
||||||
stage('Publish') {
|
stage('Publish') {
|
||||||
steps {
|
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') {
|
stage('Deploy to Azure') {
|
||||||
steps {
|
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(
|
withCredentials([azureServicePrincipal(
|
||||||
credentialsId: 'azure-pcl',
|
credentialsId: 'azure-pcl',
|
||||||
subscriptionIdVariable: 'AZ_SUB_ID',
|
subscriptionIdVariable: 'AZ_SUB_ID',
|
||||||
|
|||||||
Reference in New Issue
Block a user