Automatron.AzureDevOps
0.0.0-alpha-11
See the version list below for details.
Requires NuGet 5.9 or higher.
dotnet add package Automatron.AzureDevOps --version 0.0.0-alpha-11
NuGet\Install-Package Automatron.AzureDevOps -Version 0.0.0-alpha-11
<PackageReference Include="Automatron.AzureDevOps" Version="0.0.0-alpha-11" />
paket add Automatron.AzureDevOps --version 0.0.0-alpha-11
#r "nuget: Automatron.AzureDevOps, 0.0.0-alpha-11"
// Install Automatron.AzureDevOps as a Cake Addin #addin nuget:?package=Automatron.AzureDevOps&version=0.0.0-alpha-11&prerelease // Install Automatron.AzureDevOps as a Cake Tool #tool nuget:?package=Automatron.AzureDevOps&version=0.0.0-alpha-11&prerelease
Automatron.AzureDevOps
The Automatron.AzureDevOps .NET library enables you to write AzureDevOps workflows as .Net methods
Automatron.AzureDevOps also generates the AzureDevOps pipeline yaml every time the project is compiled.
Steps can be are defined as void/async methods on one or many job classes
Inheritance and interfaces are supported as well
Quick start
The project needs to be in git repository to able to compute paths correctly or have the RootDir property set
using System.Reflection;
using Automatron.AzureDevOps;
using Automatron.AzureDevOps.Annotations;
using Automatron.AzureDevOps.Tasks;
return await new AzureDevOpsRunner().RunAsync(args);
[Pipeline("Ci")]
[CiTrigger(Batch = true, IncludeBranches = new[] { "main" }, IncludePaths = new[] { "src" })]
[Pool(VmImage = "ubuntu-latest")]
[Stage]
[Job]
public class Pipeline
{
[Step(Emoji = "๐"]
public async Task Build()
{
}
[Step(Emoji = "๐งช", DependsOn = new[] { nameof(Build) })]
public async Task Test()
{
}
[Step(Emoji = "๐ฆ", DependsOn = new[] { nameof(Test) })]
public async Task Pack()
{
}
}
Pipelines, Stage, Jobs, Steps can be run via cmd arguments dotnet run -- Ci
Variables
Variables can mapped as properties
using System.Reflection;
using Automatron.AzureDevOps;
using Automatron.AzureDevOps.Annotations;
using Automatron.AzureDevOps.Tasks;
return await new AzureDevOpsRunner().RunAsync(args);
[Pipeline("Ci")]
[CiTrigger(Batch = true, IncludeBranches = new[] { "main" }, IncludePaths = new[] { "src" })]
[Pool(VmImage = "ubuntu-latest")]
[VariableGroup("nuget")]
[Stage]
[Job]
public class Pipeline
{
[Variable(Description = "The nuget api key")]
public Secret? NugetApiKey { get; set; }
[Step(Emoji = "๐"]
public async Task Build()
{
}
[Step(Emoji = "๐งช", DependsOn = new[] { nameof(Build) })]
public async Task Test()
{
}
[Step(Emoji = "๐ฆ", DependsOn = new[] { nameof(Test) })]
public async Task Pack()
{
}
}
Parameters
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Automatron (>= 0.0.0-alpha-11)
- Microsoft.CodeAnalysis.CSharp (>= 4.5.0)
-
net6.0
- Automatron (>= 0.0.0-alpha-11)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.0-alpha-11.6 | 297 | 11/2/2024 |
0.0.0-alpha-11.5 | 188 | 10/12/2024 |
0.0.0-alpha-11.4 | 49 | 10/12/2024 |
0.0.0-alpha-11.3 | 52 | 10/6/2024 |
0.0.0-alpha-11.2 | 75 | 10/1/2024 |
0.0.0-alpha-11 | 199 | 6/2/2023 |
0.0.0-alpha.10 | 125 | 1/6/2023 |
0.0.0-alpha.9 | 106 | 1/2/2023 |
0.0.0-alpha.8 | 111 | 11/23/2022 |
0.0.0-alpha.7 | 101 | 11/21/2022 |
0.0.0-alpha.6 | 102 | 11/16/2022 |
0.0.0-alpha.4 | 110 | 11/15/2022 |
0.0.0-alpha.3 | 101 | 11/15/2022 |
0.0.0-alpha.2 | 104 | 11/11/2022 |
0.0.0-alpha.1 | 108 | 11/10/2022 |