faccio test SOLO su branch develop x deploy..

modifiche manifest anche x URL
This commit is contained in:
Samuele E. Locatelli
2017-10-25 10:51:24 +02:00
parent 28645a579d
commit 4cb4cbdf37
3 changed files with 22 additions and 17 deletions
+9 -3
View File
@@ -2,19 +2,25 @@
<h3>TEST UPDATE</h3>
Note di rilascio:
<p>
<b>v.0.9.0.0</b>
<b>v.0.10</b>
<ul>
<li>Inizio deploy con copia file su area IIS</li>
</ul>
</p>
<p>
<b>v.0.9</b>
<ul>
<li>Test PrettyBin x spostamento dll</li>
</ul>
</p>
<p>
<b>v.0.8.0.0</b>
<b>v.0.8</b>
<ul>
<li>Prima versione con autoupdate</li>
</ul>
</p>
<p>
<b>v.0.7.0.0</b>
<b>v.0.7</b>
<ul>
<li>Prima versione con autoupdate</li>
</ul>
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>0.0.0.0</version>
<version>0.10.000.000</version>
<url>http://seriate.steamware.net:8083/SWS/MAPO-IOB-WIN/DEFAULT/MAPO-IOB-WIN.zip</url>
<changelog>http://seriate.steamware.net:8083/SWS/MAPO-IOB-WIN/DEFAULT/ChangeLog.html</changelog>
<mandatory>false</mandatory>
Vendored
+12 -13
View File
@@ -11,9 +11,9 @@ pipeline {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=50']) {
env.versionNumber = VersionNumber(versionNumberString : '${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
// env.versionNumber = VersionNumber(versionNumberString : '${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
withEnv(['NEXT_BUILD_NUMBER=62']) {
// env.versionNumber = VersionNumber(versionNumberString : '${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'MAPO-IOB-WIN'
}
}
@@ -60,7 +60,7 @@ pipeline {
steps {
// in primis compilo a seconda del branch... TUTTO tranne develop...
script {
if (env.BRANCH_NAME != "develop") {
if (env.BRANCH_NAME == "develop") {
// CAMBIO numero versione in file sorgente!!!
bat "fart.exe VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
// restore nuget packages
@@ -75,21 +75,20 @@ pipeline {
// ora mi occupo delle operazioni di compressione e copia...
script {
/* DEPLOY condizionale: develop / master / demo_ovh */
if (env.BRANCH_NAME != "develop") {
if (env.BRANCH_NAME == "develop") {
// // elimino files di conf personalizzata per ogni install...
// bat "RD /S /Q IOB-WIN\\bin\\Release\\DATA"
// Compressione in .zip dell'installer...
// powershell -ExecutionPolicy Unrestricted -File file.ps1
// COPIO in area IIS x autoupdate... sovrascrivendo zip
// manifest.xml: aggiorno versNumber
bat "fart.exe IOB-WIN\\Resources\\manifest.xml 0.0.0.0 ${env.versionNumber} || EXIT /B 0"
// manifest.xml: copio ed esporto in IIS02
bat "xcopy /y IOB-WIN\\Resources\\manifest.xml c:\\inetpub\\wwwroot\\SWS\\MAPO-IOB-WIN\\DEFAULT "
// ChangeLog.html: copio ed esporto in IIS02
bat "xcopy /y IOB-WIN\\Resources\\ChangeLog.html c:\\inetpub\\wwwroot\\SWS\\MAPO-IOB-WIN\\DEFAULT "
// manifest.xml: aggiorno versNumber ed URL del branch di update...
bat "fart.exe IOB-WIN\\Resources\\manifest.xml 000.000 ${env.versionNumber} || EXIT /B 0"
bat "fart.exe IOB-WIN\\Resources\\manifest.xml {{BRANCHNAME}} ${env.BRANCH_NAME} || EXIT /B 0"
// copio ed esporto in IIS02 i vari files .xml, .html, .zip
bat "xcopy /y IOB-WIN\\Resources\\manifest.xml c:\\inetpub\\wwwroot\\SWS\\MAPO-IOB-WIN\\${env.BRANCH_NAME} "
bat "xcopy /y IOB-WIN\\Resources\\ChangeLog.html c:\\inetpub\\wwwroot\\SWS\\MAPO-IOB-WIN\\${env.BRANCH_NAME} "
// // MAPO-IOB-WIN.zip: copio ed esporto in IIS02
// bat "xcopy /y IOB-WIN\\ReleaseClienti\\${env.BRANCH_NAME}\\${env.versionNumber}\\MAPO-IOB-WIN.zip c:\\inetpub\\wwwroot\\SWS\\MAPO-IOB-WIN\\${env.BRANCH_NAME} "