BuildSystem.

IsLocalBuild Property

Summary

Gets a value indicating whether the current build is local build.
Namespace
Cake.Common.Build
Containing Type
BuildSystem

Syntax

public bool IsLocalBuild { get; }

Examples

 // Gets a flag telling us if this is a local build or not.
 var isLocal = BuildSystem.IsLocalBuild;

 // Define a task that only runs locally.
 Task("LocalOnly")
   .WithCriteria(isLocal)
   .Does(() =>
 {
 });

Value

Type Description
bool true if the current build is local build; otherwise, false.