Created
April 14, 2016 23:59
-
-
Save xivSolutions/6e3a52b5186a32708679e885f0770212 to your computer and use it in GitHub Desktop.
Get build info from Jenkins config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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