Example #1
0
        public static string GetApiFormatString(JenkinsApiFormats format)
        {
            switch (format)
            {
            default:
            case JenkinsApiFormats.Xml: return("xml");

            case JenkinsApiFormats.Json: return("json");
            }
        }
Example #2
0
        public string JobStatus(string jobName, JenkinsApiFormats format)
        {
            var apiFormat = GetApiFormatString(format);

            return(NetPath.Combine(BaseUrl, "job", jobName, "lastBuild/api", apiFormat));
        }