BuildSystem.

IsRunningOnJenkins Property

Summary

Gets a value indicating whether this instance is running on Jenkins.
Namespace
Cake.Common.Build
Containing Type
BuildSystem

Syntax

public bool IsRunningOnJenkins { get; }

Examples

if (BuildSystem.IsRunningOnJenkins)
{
    // Get the build number.
    var buildNumber = BuildSystem.Jenkins.Environment.Build.BuildNumber;
}

Value

Type Description
bool true if this instance is running on jenkins; otherwise, false.