diff --git a/Jenkinsfile b/Jenkinsfile index 39ca2098..677ba891 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -220,7 +220,7 @@ pipeline { echo 'Chiamo publishToDeployServer...' // pubblico su server deploy! - publishToDeployServer("MP-Tablet\\Resources", "c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB") + publishToDeployServer("MP-Tablet\\Resources\\", "c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\") // // manifest.xml: aggiorno versNumber ed URL del branch di update... // bat "fart.exe MP-Tablet\\Resources\\manifest.xml 1.0.0.0 ${env.versionNumber} || EXIT /B 0" // bat "fart.exe MP-Tablet\\Resources\\manifest.xml {{BRANCHNAME}} ${env.BRANCH_NAME} || EXIT /B 0" @@ -262,15 +262,15 @@ def publishToDeployServer(resourcesPath, iisPath) { // script{ echo 'INIZIO Chiamata function publishToDeployServer' // manifest.xml: aggiorno versNumber ed URL del branch di update... - bat "fart.exe MP-Tablet\\Resources\\manifest.xml 1.0.0.0 ${env.versionNumber} || EXIT /B 0" - bat "fart.exe MP-Tablet\\Resources\\manifest.xml {{BRANCHNAME}} ${env.BRANCH_NAME} || EXIT /B 0" - bat "fart.exe MP-Tablet\\Resources\\ChangeLog.html {{CURRENT-REL}} ${env.versionNumber} || EXIT /B 0" + bat "fart.exe " + resourcesPath + "manifest.xml 1.0.0.0 ${env.versionNumber} || EXIT /B 0" + bat "fart.exe " + resourcesPath + "manifest.xml {{BRANCHNAME}} ${env.BRANCH_NAME} || EXIT /B 0" + bat "fart.exe " + resourcesPath + "ChangeLog.html {{CURRENT-REL}} ${env.versionNumber} || EXIT /B 0" writeFile file: 'MP-Tablet\\changeLog.log', text: "${getChangeString()}" - powershell '(Get-Content MP-Tablet\\Resources\\ChangeLog.html) | ForEach-Object { $_ -replace \"{{LAST-CHANGES}}\", \"${getChangeString()}\" } | Set-Content MP-Tablet\\Resources\\ChangeLog.html' + powershell '(Get-Content ' + resourcesPath + '\\ChangeLog.html) | ForEach-Object { $_ -replace \"{{LAST-CHANGES}}\", \"${getChangeString()}\" } | Set-Content ' + resourcesPath + '\\ChangeLog.html' // copio ed esporto in IIS02 i vari files .xml, .html, .zip - bat "xcopy /y MP-Tablet\\Resources\\manifest.xml c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\${env.BRANCH_NAME}\\ " - bat "xcopy /y MP-Tablet\\Resources\\ChangeLog.html c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\${env.BRANCH_NAME}\\ " - bat "xcopy /y MP-Tablet\\Resources\\logoSteamware.png c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\${env.BRANCH_NAME}\\ " + bat "xcopy /y " + resourcesPath + "\\manifest.xml c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\${env.BRANCH_NAME}\\ " + bat "xcopy /y " + resourcesPath + "\\ChangeLog.html c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\${env.BRANCH_NAME}\\ " + bat "xcopy /y " + resourcesPath + "\\logoSteamware.png c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\${env.BRANCH_NAME}\\ " // salvo copia della versione... bat "xcopy /y MP-Tablet\\ReleaseClienti\\${env.BRANCH_NAME}\\* E:\\Staging\\byProd\\MP\\${env.BRANCH_NAME}\\MP-TAB\\${env.versionNumber}\\ "