Пример #1
0
        public void GetTestRelease(int jobId, int buildId, int releaseId)
        {
            var client   = new BuildEngineApi(BaseUrl, ApiAccessKey);
            var response = client.GetRelease(jobId, buildId, releaseId);

            Assert.NotNull(response);
            Assert.Equal(releaseId, response.Id);
            Assert.Equal(buildId, response.BuildId);
            Assert.Equal("completed", response.Status);
            Assert.Equal("SUCCESS", response.Result);
            Assert.Null(response.Error);
        }
Пример #2
0
        protected ReleaseResponse GetBuildEngineRelease(Product product)
        {
            ReleaseResponse releaseResponse = null;

            if (SetBuildEngineEndpoint(product.Project.Organization))
            {
                releaseResponse = BuildEngineApi.GetRelease(product.WorkflowJobId,
                                                            product.WorkflowBuildId,
                                                            product.WorkflowPublishId);
            }
            return(releaseResponse);
        }