diff --git a/Jenkinsfile b/Jenkinsfile index b201df87..d7b08668 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,7 +81,7 @@ pipeline { writeFile file: 'changeLog.log', text: "${getChangeString()}" // bat "fart.exe IOB-WIN\\Resources\\ChangeLog.html {{LAST-CHANGES}} \"${getChangeString()}\" || EXIT /B 0" // copio ed esporto in IIS02 i vari files .xml, .html, .zip - powershell '(Get-Content IOB-WIN\\Resources\\ChangeLog.html) | ForEach-Object { $_ -replace {{LAST-CHANGES}}, ${getChangeString()} } | Set-Content IOB-WIN\\Resources\\ChangeLog.html' + powershell "(Get-Content IOB-WIN\\Resources\\ChangeLog.html) | ForEach-Object { $_ -replace \"{{LAST-CHANGES}}\", \"${getChangeString()}\" } | Set-Content IOB-WIN\\Resources\\ChangeLog.html" bat "xcopy /y IOB-WIN\\Resources\\manifest.xml c:\\inetpub\\wwwroot\\SWS\\MAPO-IOB-WIN\\${env.BRANCH_NAME}\\ " bat "xcopy /y IOB-WIN\\Resources\\ChangeLog.html c:\\inetpub\\wwwroot\\SWS\\MAPO-IOB-WIN\\${env.BRANCH_NAME}\\ "