public void GetComputerSetTest() { using (Jenkins jenkins = new Jenkins(this.host, this.login, this.password)) { JenkinsModelComputerSet set = jenkins.GetComputerSetAsync().Result; } }
/// <summary> /// Get infos about all Jenkins nodes. /// </summary> /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param> /// <returns>Nodes infos</returns> public async Task <JenkinsModelComputerSet> GetComputerSetAsync(CancellationToken cancellationToken) { JenkinsModelComputerSet computerSet = await GetApiAsync <JenkinsModelComputerSet>("computer", cancellationToken); return(computerSet); }