The url should point to the root of the action (see https://github.com/jenkinsci/junit-plugin/blob/d569357186902e13d5ca4d38e1691b2dec0bf078/src/main/resources/lib/hudson/test/failed-test.jelly#L65C99-L65C99 how the "/summary" is appended to it), assuming that the action is applied to a run it would be something like <jenkinsroot>/job/myjob/1/buildresult (note that the url you used for your action "buildresults" is very generic, I would include make it "matlabresults" instead). You also don't need the doSummary method in your action when you already have a summary.jelly that will render the data.
From: [email protected] <[email protected]> On Behalf Of Nikhil Bhoski Sent: Dienstag, 5. September 2023 18:24 To: Jenkins Developers <[email protected]> Subject: Re: Ajax issue Thanks Alot for responding. does URL point to the method of action class ? like ${it.Url}/? this where the confusion is I am not sure where this URL points how would it look like in my jelly ? Regards Nikhil On Tuesday, 5 September 2023 at 21:39:06 UTC+5:30 [email protected]<mailto:[email protected]> wrote: You might want to look at https://www.jenkins.io/doc/developer/handling-requests/ But if I understand you right you want to show the summary.jelly from your action. So looking at https://github.com/jenkinsci/junit-plugin/blob/master/src/main/resources/lib/hudson/test/failed-test.jelly, all you need to do is to use the url attribute pointing to your action to make it appear when clicked. <r:failed-test url="<url to your action>"/> From: [email protected] <[email protected]> On Behalf Of Nikhil Bhoski Sent: Dienstag, 5. September 2023 12:19 To: Jenkins Developers <[email protected]> Subject: Ajax issue Hi I want to reder a table on a index.jelly and one <td> value will be an error which will be pulled from results.json in workspace. i know JUNIT and others are using xmlHTTTP response . However i dont understand how do they bind it in action class. can you please help? BulDArtifact.java is my action class https://github.com/mathworks/jenkins-matlab-plugin/blob/buildartifact/src/main/java/com/mathworks/ci/BuildArtifactAction.java Below is my jelly https://github.com/mathworks/jenkins-matlab-plugin/blob/buildartifact/src/main/resources/com/mathworks/ci/BuildArtifactAction/index.jelly if i use <r:failed-test/> houw can i make /summary visible on click or how can i bind the values from Jelly to the Action class for AJAX. Nikhil -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/78b22f84-0d84-48a2-9c2b-f46f2390f312n%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-dev/78b22f84-0d84-48a2-9c2b-f46f2390f312n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/eb651c51-cab7-49cb-b4dd-6ee85fbb26f2n%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-dev/eb651c51-cab7-49cb-b4dd-6ee85fbb26f2n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/AS1PR02MB7847504CF34367B322F0AA7287E8A%40AS1PR02MB7847.eurprd02.prod.outlook.com.
