Out of the box support
The Bitrise alias, which returns an IBitriseProvider instance can be used to interact with the Bitrise environment.
The following example prints the build number if running on Bitrise:
if (BuildSystem.Bitrise.IsRunningOnBitrise)
{
Information(BuildSystem.Bitrise.Environment.Build.BuildNumber);
}
else
{
Information("Not running on Bitrise");
}
See IBitriseProvider for details and available methods to interact with Bitrise.
Running Cake
The recommended way to run Cake on Bitrise is by using a tool manifest. Add a Script step to your workflow containing:
#!/bin/bash
dotnet tool restore
dotnet cake
Available 3rd party extensions
No extensions found
