altra prova...
This commit is contained in:
Vendored
+1
-1
@@ -17,7 +17,7 @@ pipeline {
|
||||
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=718']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=719']) {
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '5.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
env.versionNumber = VersionNumber(versionNumberString : '5.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
|
||||
env.APP_NAME = 'MAPO'
|
||||
|
||||
@@ -179,25 +179,29 @@ namespace MoonProTablet.WebUserControls
|
||||
try
|
||||
{
|
||||
string filePath = docFilePath(Disegno);
|
||||
logger.lg.scriviLog(string.Format("FilePath: {0}", filePath), tipoLog.INFO);
|
||||
fileMover.obj.setDirectory("");
|
||||
answ = fileMover.obj.fileExist(filePath);
|
||||
// se non trova provo a sostituire "~/" con "./"
|
||||
if (!answ)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("FilePath: {0}", filePath.Replace("~/", "./")), tipoLog.INFO);
|
||||
answ = fileMover.obj.fileExist(filePath.Replace("~/", "./"));
|
||||
}
|
||||
// penultima prova...
|
||||
// altra prova...
|
||||
if (!answ)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("FilePath: {0}", filePath.Replace("~/", "")), tipoLog.INFO);
|
||||
answ = fileMover.obj.fileExist(filePath.Replace("~/", ""));
|
||||
}// penultima prova...
|
||||
}
|
||||
// altra prova...
|
||||
if (!answ)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("FilePath: {0}", filePath.Replace("~/", "e:\\")), tipoLog.INFO);
|
||||
answ = fileMover.obj.fileExist(filePath.Replace("~/", "e:\\")); // hard coded da evitare...
|
||||
fileMover.obj.setDirectory(Server.MapPath(""));
|
||||
answ = fileMover.obj.fileExist(filePath);
|
||||
}
|
||||
// altra prova...
|
||||
if (!answ)
|
||||
{
|
||||
fileMover.obj.setDirectory(Server.MapPath(""));
|
||||
answ = fileMover.obj.fileExist(filePath.Replace("~/", ""));
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
|
||||
Reference in New Issue
Block a user