From d720a727acef1685f3fa6530286d1aedb24262ca Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 8 Nov 2017 18:00:55 +0100 Subject: [PATCH] cambio parametri x pubblicazione --- Jenkinsfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 64db3b41..877b6ce2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -193,7 +193,7 @@ pipeline { // dropbox configName: 'Donati', remoteDirectory: 'installers/MP-LAND', removePrefix: 'ReleaseClienti/Donati', sourceFiles: 'ReleaseClienti/Donati/**' } // pubblico su server deploy! - publishToDeployServer("MP\\", "c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\", "MP-LAND") + publishToDeployServer("MP\\", "c:\\inetpub\\wwwroot\\SWS\\MAPO\\", "LAND") }, ADMIN: { sleep 0 @@ -236,7 +236,7 @@ pipeline { bat "E:\\Jenkins\\exportDropbox.bat \"${WORKSPACE}\\MP-Tablet\\ReleaseClienti\\${env.BRANCH_NAME}\" \"E:\\Staging\\byProd\\MP\\${env.BRANCH_NAME}\\MP-TAB\" " } // pubblico su server deploy! - publishToDeployServer("MP-Tablet\\", "c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\", "MP-TAB") + publishToDeployServer("MP-Tablet\\", "c:\\inetpub\\wwwroot\\SWS\\MAPO\\", "TAB") }, failFast: false) } @@ -272,13 +272,13 @@ def publishToDeployServer(prjPath, iisPath, packName) { writeFile file: prjPath + 'changeLog.log', text: "${getChangeString()}" powershell '(Get-Content ' + prjPath + 'Resources\\ChangeLog.html) | ForEach-Object { $_ -replace \"{{LAST-CHANGES}}\", \"${getChangeString()}\" } | Set-Content ' + prjPath + 'Resources\\ChangeLog.html' // copio ed esporto in IIS02 i vari files .xml, .html, .zip - bat "xcopy /y " + prjPath + "Resources\\manifest.xml " + iisPath + "${env.BRANCH_NAME}\\ " - bat "xcopy /y " + prjPath + "Resources\\ChangeLog.html " + iisPath + "${env.BRANCH_NAME}\\ " - bat "xcopy /y " + prjPath + "Resources\\logoSteamware.png " + iisPath + "${env.BRANCH_NAME}\\ " + bat "xcopy /y " + prjPath + "Resources\\manifest.xml " + iisPath + packName + "\\${env.BRANCH_NAME}\\ " + bat "xcopy /y " + prjPath + "Resources\\ChangeLog.html " + iisPath + packName + "\\${env.BRANCH_NAME}\\ " + bat "xcopy /y " + prjPath + "Resources\\logoSteamware.png " + iisPath + packName + "\\${env.BRANCH_NAME}\\ " // salvo copia della versione... bat "xcopy /y " + prjPath + "\\ReleaseClienti\\${env.BRANCH_NAME}\\* E:\\Staging\\byProd\\MP\\${env.BRANCH_NAME}\\" + packName + "\\${env.versionNumber}\\ " // copio x AutoUpdate deploy - bat "xcopy /y " + prjPath + "\\ReleaseClienti\\${env.BRANCH_NAME}\\" + packName + ".zip " + iisPath + "${env.BRANCH_NAME}\\ " + bat "xcopy /y " + prjPath + "\\ReleaseClienti\\${env.BRANCH_NAME}\\" + packName + ".zip " + iisPath + packName + "\\${env.BRANCH_NAME}\\ " } @NonCPS // Funzione x recupero changeLog