Out of the box support
The Bamboo alias, which returns an IBambooProvider instance can be used to interact with the Atlassian Bamboo environment.
The following example prints the build number if running on Atlassian Bamboo:
if (BuildSystem.Bamboo.IsRunningOnBamboo)
{
Information(BuildSystem.Bamboo.Environment.Build.Number);
}
else
{
Information("Not running on Atlassian Bamboo");
}
See IBambooProvider for details and available methods to interact with Atlassian Bamboo.
Running Cake
The recommended way to run Cake on Atlassian Bamboo is by using a tool manifest. Add a task of type Command or Script with the following:
dotnet tool restore
dotnet cake
Available 3rd party extensions
No extensions found
