Skip to content

Commit

Permalink
Merge pull request #3187 from Ginger-Automation/Beta/BugFix/RQMPublis…
Browse files Browse the repository at this point in the history
…hExecutionStatus

Publish execution status Related changes
  • Loading branch information
Maheshkale447 authored Aug 16, 2023
2 parents 5938979 + 859351a commit 1881520
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Ginger/GingerCoreNET/Run/RunsetExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,15 @@ private void FinishPublishResultsToAlmTask()
ALMResultsPublishTaskPool.Clear();
ALMResultsPublishTaskPool = null;
var runsetAction = WorkSpace.Instance.RunsetExecutor.RunSetConfig.RunSetActions.FirstOrDefault(f => f is RunSetActionPublishToQC && f.RunAt.Equals(RunSetActionBase.eRunAt.DuringExecution));
if (runsetAction.Status != RunSetActionBase.eRunSetActionStatus.Failed)
if (runsetAction != null)
{
runsetAction.Status = RunSetActionBase.eRunSetActionStatus.Completed;

if (WorkSpace.Instance.RunsetExecutor.RunSetConfig.RunSetActions.Any(f => f is RunSetActionPublishToQC && f.RunAt.Equals(RunSetActionBase.eRunAt.DuringExecution) && !string.IsNullOrEmpty(f.Errors)))
{
runsetAction.Status = RunSetActionBase.eRunSetActionStatus.Failed;
}
else { runsetAction.Status = RunSetActionBase.eRunSetActionStatus.Completed; }

}
}
}
Expand Down

0 comments on commit 1881520

Please sign in to comment.