Esempio n. 1
0
 public void GetComputerSetTest()
 {
     using (Jenkins jenkins = new Jenkins(this.host, this.login, this.password))
     {
         JenkinsModelComputerSet set = jenkins.GetComputerSetAsync().Result;
     }
 }
Esempio n. 2
0
        /// <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);
        }