using System; using System.ComponentModel; namespace GitHub.DistributedTask.Pipelines { /// /// Provides constant values for constructs used in the pipeline APIs. /// [EditorBrowsable(EditorBrowsableState.Never)] public static class PipelineConstants { public static readonly String AgentVersionDemandName = "Runner.Version"; /// /// The default job cancel timeout in minutes. /// public static readonly Int32 DefaultJobCancelTimeoutInMinutes = 5; /// /// The default job name. This job name is used when a phase does not leverage multipliers /// or slicing and only has one implicit job. /// public static readonly String DefaultJobName = "__default"; /// /// The default job display name. For when the user doesn't specify names for anything. /// public static readonly String DefaultJobDisplayName = "Job"; /// /// The default job timeout in minutes. /// public static readonly Int32 DefaultJobTimeoutInMinutes = 360; /// /// The max length for a node within a pipeline - e.g. a stage name or a job name. /// public static readonly Int32 MaxNodeNameLength = 100; /// /// Alias for the self repository. /// public static readonly String SelfAlias = "self"; /// /// Error code during graph validation. /// internal const String DependencyNotFound = nameof(DependencyNotFound); /// /// Error code during graph validation. /// internal const String GraphContainsCycle = nameof(GraphContainsCycle); /// /// Error code during graph validation. /// internal const String NameInvalid = nameof(NameInvalid); /// /// Error code during graph validation. /// internal const String NameNotUnique = nameof(NameNotUnique); /// /// Error code during graph validation. /// internal const String StartingPointNotFound = nameof(StartingPointNotFound); public static class CheckoutTaskInputs { public static readonly String Repository = "repository"; public static readonly String Ref = "ref"; public static readonly String Version = "version"; public static readonly String Token = "token"; public static readonly String Clean = "clean"; public static readonly String Submodules = "submodules"; public static readonly String Lfs = "lfs"; public static readonly String FetchDepth = "fetchDepth"; public static readonly String PersistCredentials = "persistCredentials"; public static readonly String Path = "path"; public static readonly String WorkspaceRepo = "workspaceRepo"; public static class SubmodulesOptions { public static readonly String Recursive = "recursive"; public static readonly String True = "true"; } } public static class WorkspaceCleanOptions { public static readonly String Outputs = "outputs"; public static readonly String Resources = "resources"; public static readonly String All = "all"; } public static class ScriptStepInputs { public static readonly String Script = "script"; public static readonly String WorkingDirectory = "workingDirectory"; public static readonly String Shell = "shell"; } } }