Skip to content

Instantly share code, notes, and snippets.

@xivSolutions
Created April 14, 2016 23:59
Show Gist options
  • Save xivSolutions/6e3a52b5186a32708679e885f0770212 to your computer and use it in GitHub Desktop.
Save xivSolutions/6e3a52b5186a32708679e885f0770212 to your computer and use it in GitHub Desktop.
Get build info from Jenkins config
var request = new RestRequest("/job/feature/api/json/config.xml", Method.GET);
request.AddHeader("content-type", "application/json");
var client = new RestClient(config.JenkinsUrl)
{
Authenticator = new HttpBasicAuthenticator(config.UserName, config.Password)
};
var result = client.Execute(request);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment