public static string GetApiFormatString(JenkinsApiFormats format) { switch (format) { default: case JenkinsApiFormats.Xml: return("xml"); case JenkinsApiFormats.Json: return("json"); } }
public string JobStatus(string jobName, JenkinsApiFormats format) { var apiFormat = GetApiFormatString(format); return(NetPath.Combine(BaseUrl, "job", jobName, "lastBuild/api", apiFormat)); }