jenkinsci / jenkinsci/java-client-api

getTestReport() throwing org.apache.http.client.HttpResponseException:

Đang mở
#404 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Java
Star
913
Fork
466
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I am using java-client-api version 0.3.8 and Jenkins Version 2.8. I looked issues #156 , #89 but no use i am always getting org.apache.http.client.HttpResponseException: Not Found

Below is the code i am trying:
MavenJobWithDetails mavenJob = js.getMavenJob("GOA_Dashboard_Test");
BuildWithDetails details = mavenJob.getBuilds().get(0).details();
System.out.println("Build Number: " + details.getNumber());//i am getting number of latest build here
TestReport testReport = mavenJob.getBuilds().get(0).getTestReport();//getting error here

Also i tried
JenkinsTriggerHelper triggerHelper = new JenkinsTriggerHelper(js);
BuildWithDetails build = triggerHelper.triggerJobAndWaitUntilFinished("GOA_Dashboard_Test",params,true);
System.out.println("RESULT: "+build.getResult());
System.out.println("build Info: "+build.getTestReport());//getting error here

Please suggest me where i am doing mistake?
Thank You.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by tracing the getTestReport() calls from MavenJobWithDetails and BuildWithDetails, then compare them with the Jenkins job and build created through JenkinsTriggerHelper. Check the request that produces HttpResponseException: Not Found and verify whether the build exposes a test report. Done means the cause of the 404 is identified and the behavior or usage is clarified with a reproducible test or documented condition.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
api
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.