// Copyright Epic Games, Inc. All Rights Reserved.
#nullable enable
namespace AutomationTool
{
///
/// Used to pass information to tasks about the currently running job.
///
public class JobContext
{
///
/// The current node name
///
public string CurrentNode { get; }
///
/// The command that is running the current job.
///
public BuildCommand OwnerCommand { get; }
///
/// Constructor
///
/// The command running the current job
public JobContext(BuildCommand inOwnerCommand) : this("Unknown", inOwnerCommand)
{
}
///
/// Constructor
///
/// The current node being executed
/// The command running the current job
public JobContext(string inCurrentNode, BuildCommand inOwnerCommand)
{
CurrentNode = inCurrentNode;
OwnerCommand = inOwnerCommand;
}
}
}