コード例 #1
0
        /// <summary>
        /// Returns the names of the buildCount most recent builds for the specified project, sorted s.t. the newest build is first in the array
        /// </summary>
        public string[] GetMostRecentBuildNames(string projectName, int buildCount)
        {
            BuildListRequest request = new BuildListRequest(null, projectName);

            request.NumberOfBuilds = buildCount;
            DataListResponse resp = cruiseServer.GetMostRecentBuildNames(request);

            ValidateResponse(resp);
            return(resp.Data.ToArray());
        }
コード例 #2
0
 public string[] GetMostRecentBuildNames(string projectName, int buildCount)
 {
     try
     {
         return(cruiseServer.GetMostRecentBuildNames(projectName, buildCount));
     }
     catch (Exception e)
     {
         Log.Error(e);
         throw new CruiseControlException("Unexpected exception caught on server", e);
     }
 }
コード例 #3
0
 public string[] GetMostRecentBuildNames(string projectName, int buildCount)
 {
     return(_server.GetMostRecentBuildNames(projectName, buildCount));
 }
コード例 #4
0
 /// <summary>
 /// Returns the names of the buildCount most recent builds for the specified project, sorted s.t. the newest build is first in the array
 /// </summary>
 public virtual DataListResponse GetMostRecentBuildNames(BuildListRequest request)
 {
     return(server.GetMostRecentBuildNames(request));
 }