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',