コード例 #1
0
        public void BuildGraphTest()
        {
            // Arrange
            JenkinsModelFreeStyleBuild freeStyleBuild = null;
            JenkinsJenkinsciBuildGraph buildGraph     = null;

            // Act
            using (Jenkins jenkins = new Jenkins(this.host, this.login, this.password))
            {
                freeStyleBuild = jenkins.GetLastBuildAsync <JenkinsModelFreeStyleBuild>("FreestyleTree").Result;

                buildGraph = jenkins.GetBuildGraph("FreestyleTree", freeStyleBuild.Number).Result;
            }

            // Assert
            Assert.IsNotNull(buildGraph, nameof(buildGraph));
            Assert.IsNotNull(buildGraph.BuildGraph, nameof(buildGraph.BuildGraph));
        }