BitriseEnvironmentInfo.

Directory Property

Summary

Gets Bitrise directory information.

Syntax

public BitriseDirectoryInfo Directory { get; }

Examples

if (BuildSystem.Bitrise.IsRunningOnBitrise)
{
    Information(
        @"Directory:
        Source Directory: {0}
        Deploy Directory: {1}",
        BuildSystem.Bitrise.Environment.Directory.SourceDirectory,
        BuildSystem.Bitrise.Environment.Directory.DeployDirectory
        );
}
else
{
    Information("Not running on Bitrise");
}
if (Bitrise.IsRunningOnBitrise)
{
    Information(
        @"Directory:
        Source Directory: {0}
        Deploy Directory: {1}",
        Bitrise.Environment.Directory.SourceDirectory,
        Bitrise.Environment.Directory.DeployDirectory
        );
}
else
{
    Information("Not running on Bitrise");
}

Value

Type Description
BitriseDirectoryInfo The directory.