TravisCIBuildInfo Class

Summary

Provides Travis CI build information for the current build.
Namespace
Cake.Common.Build.TravisCI.Data
Base Types
graph BT Type-->Base0["TravisCIInfo"] click Base0 "/api/Cake.Common.Build.TravisCI/TravisCIInfo" Base0-->Base1["object"] Type["TravisCIBuildInfo"] class Type type-node

Syntax

public sealed class TravisCIBuildInfo : TravisCIInfo

Constructors

Name Summary
TravisCIBuildInfo(ICakeEnvironment) Initializes a new instance of the TravisCIBuildInfo class.

Properties

Name Value Summary
Branch string
Gets the branch for the current build.
BuildDirectory string
Gets the build directory for the current build.
BuildId string
Gets the build identifier for the current build.
BuildNumber int
Gets the build number for the current build.
Tag string
Gets the tag name for the current build.
TestResult int
Gets the test result indicating if the current build is successful or broken.

Methods

Name Value Summary
GetEnvironmentBoolean(string) bool
Gets an environment variable as a bool.
Inherited from TravisCIInfo
GetEnvironmentInteger(string) int
Gets an environment variable as a int.
Inherited from TravisCIInfo
GetEnvironmentString(string) string
Gets an environment variable as a string.
Inherited from TravisCIInfo

Extension Methods

Name Value Summary
Dump<TravisCIBuildInfo>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<TravisCIBuildInfo>(TravisCIBuildInfo[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<TravisCIBuildInfo>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<TravisCIBuildInfo>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<TravisCIBuildInfo>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<TravisCIBuildInfo>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin