modifica metodo addTaskx non perdere in caso di task mancanti
This commit is contained in:
Vendored
+1
-1
@@ -13,7 +13,7 @@ pipeline {
|
||||
steps {
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=1411']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=1412']) {
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '6.13.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
env.versionNumber = VersionNumber(versionNumberString : '6.13.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
|
||||
env.APP_NAME = 'MAPO'
|
||||
|
||||
+9
-1
@@ -892,9 +892,17 @@ namespace MapoDb
|
||||
Dictionary<string, string> savedTask = new Dictionary<string, string>();
|
||||
try
|
||||
{
|
||||
logger.lg.scriviLog($"Request: idxMacchina: {idxMacchina} | taskKey: {taskKey} | taskVal: {taskVal}");
|
||||
// leggo task attuali...
|
||||
currTask = mTaskMacchina(idxMacchina);
|
||||
currTask[taskKey.ToString()] = taskVal;
|
||||
if (currTask.ContainsKey($"{taskKey}"))
|
||||
{
|
||||
currTask[$"{taskKey}"] = taskVal;
|
||||
}
|
||||
else
|
||||
{
|
||||
currTask.Add($"{taskKey}", taskVal);
|
||||
}
|
||||
answ = memLayer.ML.redSaveHashDict(currHash, currTask);
|
||||
logger.lg.scriviLog($"Task ADD - idxMacchina: {idxMacchina} | taskKey: {taskKey} | taskVal: {taskVal}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user