Jenkins .NET Client is a NuGet package that give access to Jenkins REST API thru .NET objects easily. Package available here: https://www.nuget.org/packages/Jenkins.Core/

Use NuGet package manager to add reference to Jenkins .NET Client then you have access to the API.

Easy sample:

var factory = new JenkinsRestFactory();
var client = factory.GetClient();

var server = client.GetServerAsync("http://eikonsdk-ci.emea1.ciscloud/").Result;

Console.WriteLine("Node description: {0}", server.Node.Description);

foreach (var job in server.Node.Jobs)
{
    Console.WriteLine("\t{0}", job.Name);
}

Last edited Jul 17, 2014 at 12:38 PM by gghez, version 3