I have been working with an Azure DevOps release definition and triggering it from some C# code:
var releaseClient = VssConnection.GetClient<ReleaseHttpClient>();
return await releaseClient.CreateReleaseAsync(
_releaseDefinitionId,
$"Release run for {build.BuildNumber}",
build.Definition.Name,
build.Id,
new Dictionary<string, string> {
{ "InputVariable1", _value1 },
{ "InputVariable2", _value2 },
{ "DatabaseConnectionString", "xxxxxxx" }
});
I've now converted that release definition to a pure YAML pipeline - is there any way to trigger the running of that pipeline from C#?
Thanks!