Class PleOpsBuildContext
Build context information to share across tasks.
public class PleOpsBuildContext : FrostingContext, IFrostingContext, ICakeContext
- Inheritance
-
PleOpsBuildContext
- Implements
- Inherited Members
Constructors
PleOpsBuildContext(ICakeContext)
Initializes a new instance of the PleOpsBuildContext class.
public PleOpsBuildContext(ICakeContext context)
Parameters
context
ICakeContextThe context to pass to the base class.
Properties
ArtifactsPath
Gets or sets the path to directory to write the artifacts.
public string ArtifactsPath { get; set; }
Property Value
BuildKind
Gets or sets the kind of build to perform.
public BuildKind BuildKind { get; set; }
Property Value
Remarks
GitVersion can set it.
ChangelogFile
Gets or sets the path to the full changelog file.
public string ChangelogFile { get; set; }
Property Value
ChangelogNextFile
Gets or sets the path to the next release changelog file.
public string ChangelogNextFile { get; set; }
Property Value
DeliveriesContext
Gets or sets the build context for the project's deliveries.
public DeliveriesContext DeliveriesContext { get; set; }
Property Value
DocFxContext
Gets or sets the build context for DocFX projects.
public DocFxBuildContext DocFxContext { get; set; }
Property Value
DotNetContext
Gets or sets the build context for .NET projects.
public DotNetBuildContext DotNetContext { get; set; }
Property Value
GitHubContext
Gets or sets the build context for GitHub interactions.
public GitHubBuildContext GitHubContext { get; set; }
Property Value
IsIncrementalBuild
Gets or sets a value indicating whether to do an incremental build and skip cleaning existing artifacts and dependencies.
public bool IsIncrementalBuild { get; set; }
Property Value
RepositoryRootPath
Gets or sets the path to the project repository root.
public string RepositoryRootPath { get; set; }
Property Value
Remarks
Automatically obtained via command-line Git.
TemporaryPath
Gets or sets a path to the build temporary directory.
public string TemporaryPath { get; set; }
Property Value
Version
Gets or sets the build version.
public string Version { get; set; }
Property Value
Remarks
GitVersion can set it.
WarningsAsErrors
Gets or sets a value indicating whether to fail on warnings reported.
public bool WarningsAsErrors { get; set; }
Property Value
Methods
Print()
Log the non-sensitive information of the build context.
public void Print()
ReadArguments()
Initialize the build context with command-line arguments if present.
public virtual void ReadArguments()