jenkinsci / jenkinsci/java-client-api

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

Aperta
#404 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Java
Stelle
913
Fork
466
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.