jenkinsci / jenkinsci/java-client-api
getTestReport() throwing org.apache.http.client.HttpResponseException:
- Langage dominant
- Java
- Étoiles
- 913
- Forks
- 466
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100