inserito steps/script x function...
This commit is contained in:
Vendored
+19
-17
@@ -259,24 +259,26 @@ pipeline {
|
||||
@NonCPS
|
||||
// Funzione x pubblicazione su server IIS di deploy
|
||||
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"
|
||||
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'
|
||||
// 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}\\ "
|
||||
steps {
|
||||
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"
|
||||
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'
|
||||
// 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}\\ "
|
||||
|
||||
// salvo copia della versione...
|
||||
bat "xcopy /y MP-Tablet\\ReleaseClienti\\${env.BRANCH_NAME}\\* E:\\Staging\\byProd\\MP\\${env.BRANCH_NAME}\\MP-TAB\\${env.versionNumber}\\ "
|
||||
// copio x AutoUpdate deploy
|
||||
bat "xcopy /y MP-Tablet\\ReleaseClienti\\${env.BRANCH_NAME}\\MP-TAB.zip c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\${env.BRANCH_NAME}\\ "
|
||||
echo 'FINE Chiamata function publishToDeployServer'
|
||||
// salvo copia della versione...
|
||||
bat "xcopy /y MP-Tablet\\ReleaseClienti\\${env.BRANCH_NAME}\\* E:\\Staging\\byProd\\MP\\${env.BRANCH_NAME}\\MP-TAB\\${env.versionNumber}\\ "
|
||||
// copio x AutoUpdate deploy
|
||||
bat "xcopy /y MP-Tablet\\ReleaseClienti\\${env.BRANCH_NAME}\\MP-TAB.zip c:\\inetpub\\wwwroot\\SWS\\MAPO\\TAB\\${env.BRANCH_NAME}\\ "
|
||||
echo 'FINE Chiamata function publishToDeployServer'
|
||||
}
|
||||
}
|
||||
}
|
||||
// Funzione x recupero changeLog
|
||||
|
||||
Reference in New Issue
Block a user