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 | 576 | 11/2/2024 |
0.0.0-alpha-11.5 | 193 | 10/12/2024 |
0.0.0-alpha-11.4 | 55 | 10/12/2024 |
0.0.0-alpha-11.3 | 55 | 10/6/2024 |
0.0.0-alpha-11.2 | 84 | 10/1/2024 |
0.0.0-alpha-11 | 202 | 6/2/2023 |
0.0.0-alpha.10 | 127 | 1/6/2023 |
0.0.0-alpha.9 | 112 | 1/2/2023 |
0.0.0-alpha.8 | 115 | 11/23/2022 |
0.0.0-alpha.7 | 105 | 11/21/2022 |
0.0.0-alpha.6 | 108 | 11/16/2022 |
0.0.0-alpha.4 | 112 | 11/15/2022 |
0.0.0-alpha.3 | 106 | 11/15/2022 |
0.0.0-alpha.2 | 109 | 11/11/2022 |
0.0.0-alpha.1 | 113 | 11/10/2022 |