test modifica script fixResources
This commit is contained in:
Vendored
+12
-9
@@ -236,11 +236,12 @@ def getChangeString() {
|
||||
}
|
||||
|
||||
def fixResources(basePath){
|
||||
echo "Start fixResources"
|
||||
def now = new Date()
|
||||
def anno = now.format("yyyy", TimeZone.getTimeZone('UTC'))
|
||||
|
||||
// elimino files conf personalizzata per ogni install...
|
||||
bat "RD /S /Q ${basePath}}\\bin\\DATA"
|
||||
bat "RD /S /Q ${basePath}\\bin\\DATA"
|
||||
// manifest.xml: aggiorno versNumber ed URL del branch di update...
|
||||
bat "e:\\fart.exe ${basePath}\\Resources\\manifest.xml 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
|
||||
bat "e:\\fart.exe ${basePath}\\Resources\\manifest.xml {{BRANCHNAME}} ${env.BRANCH_NAME} || EXIT /B 0"
|
||||
@@ -248,14 +249,16 @@ def fixResources(basePath){
|
||||
bat "e:\\fart.exe ${basePath}\\Resources\\ChangeLog.html {{CURR-YEAR}} ${anno} || EXIT /B 0"
|
||||
|
||||
// copio ed esporto in IIS02 i vari files .xml, .html, .zip
|
||||
if(basePath == "IOB-WIN")
|
||||
{
|
||||
powershell '(Get-Content IOB-WIN\\Resources\\ChangeLog.html) | ForEach-Object { $_ -replace \"{{LAST-CHANGES}}\", \"${getChangeString()}\" } | Set-Content IOB-WIN\\Resources\\ChangeLog.html'
|
||||
}
|
||||
else if (basePath == "IOB-WIN")
|
||||
{
|
||||
powershell '(Get-Content IOB-WIN-NEXT\\Resources\\ChangeLog.html) | ForEach-Object { $_ -replace \"{{LAST-CHANGES}}\", \"${getChangeString()}\" } | Set-Content IOB-WIN-NEXT\\Resources\\ChangeLog.html'
|
||||
}
|
||||
powershell '(Get-Content ${basePath}\\Resources\\ChangeLog.html) | ForEach-Object { $_ -replace \"{{LAST-CHANGES}}\", \"${getChangeString()}\" } | Set-Content ${basePath}\\Resources\\ChangeLog.html'
|
||||
|
||||
// if(basePath == "IOB-WIN")
|
||||
// {
|
||||
// powershell '(Get-Content IOB-WIN\\Resources\\ChangeLog.html) | ForEach-Object { $_ -replace \"{{LAST-CHANGES}}\", \"${getChangeString()}\" } | Set-Content IOB-WIN\\Resources\\ChangeLog.html'
|
||||
// }
|
||||
// else if (basePath == "IOB-WIN")
|
||||
// {
|
||||
// powershell '(Get-Content IOB-WIN-NEXT\\Resources\\ChangeLog.html) | ForEach-Object { $_ -replace \"{{LAST-CHANGES}}\", \"${getChangeString()}\" } | Set-Content IOB-WIN-NEXT\\Resources\\ChangeLog.html'
|
||||
// }
|
||||
|
||||
bat "xcopy /y ${basePath}\\Resources\\manifest.xml c:\\inetpub\\wwwroot\\SWS\\MAPO\\${basePath}\\${env.BRANCH_NAME}\\ "
|
||||
bat "xcopy /y ${basePath}\\Resources\\ChangeLog.html c:\\inetpub\\wwwroot\\SWS\\MAPO\\${basePath}\\${env.BRANCH_NAME}\\ "
|
||||
|
||||
Reference in New Issue
Block a user