cambio parametri x pubblicazione

This commit is contained in:
Samuele E. Locatelli
2017-11-08 18:00:55 +01:00
parent f976875b22
commit d720a727ac
Vendored
+6 -6
View File
@@ -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