diff --git a/IOB-WIN/IobOSAI.cs b/IOB-WIN/IobOSAI.cs index 64a3ece5..c3d3f3d4 100644 --- a/IOB-WIN/IobOSAI.cs +++ b/IOB-WIN/IobOSAI.cs @@ -244,7 +244,7 @@ namespace IOB_WIN // รจ little endian (NON serve conversione) hasBigEndian = false; - lgInfo("Start init Adapter OSAI all'IP {0}:{1} per IOB {2}", IOBConf.cncIpAddr, IOBConf.cncPort, IOBConf.codIOB); + lgInfo("Start init Adapter OSAI all'IP/NOME{0}:{1} per IOB {2}", IOBConf.cncIpAddr, IOBConf.cncPort, IOBConf.codIOB); // Creo oggetto x gestione connessione/comunicazione NC: secondo il tipo creo CNDEX o OPEN parentForm.commPlcActive = true; @@ -453,8 +453,12 @@ namespace IOB_WIN { // ora provo connessione... parentForm.commPlcActive = true; - OSAI_ref.OpenSession(); - + bool fatto = OSAI_ref.OpenSession(); + if (!fatto) + { + // log errore! + lgInfo("Impossibile effettuare apertura sessione: " + OSAI_ref.ErrMsg); + } parentForm.commPlcActive = false; lgInfo("szStatusConnection: " + szStatusConnection); connectionOk = true; diff --git a/Jenkinsfile b/Jenkinsfile index b99dc056..7b2a2dd7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=304']) { + withEnv(['NEXT_BUILD_NUMBER=305']) { // env.versionNumber = VersionNumber(versionNumberString : '1.18.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '1.18.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO-IOB-WIN'