modifica sintassi powershell

This commit is contained in:
Samuele E. Locatelli
2017-10-26 12:32:32 +02:00
parent 0b212f5801
commit 56ff60bdfe
Vendored
+1 -1
View File
@@ -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}\\ "