Thanks Alot . This worked very well ! i could finally render my summary. I am sorry to being rooky here but i have two more questions
1) I am getting only Jenkins root URL using Jenkins.get().getRootURL() any way that i could get the URL till the build run that i have eg in my case /job/sidepanel_view/17/${it.urlName} This is the complete URL that i need to uppend to root to get summary displayed. Any way i could get it directly in Jelly like ${rootURL} etc 2) instead of summary do you suggest any other way that i could render a short error result on click of the button. I would like to use XMLHTTP response like here https://github.com/jenkinsci/junit-plugin/blob/d569357186902e13d5ca4d38e1691b2dec0bf078/src/main/resources/lib/hudson/test/js/failureSummary.js#L10 Thanks in advance for all your support so far getting to learn good things Regards Nikhil On Tuesday, 5 September 2023 at 23:04:42 UTC+5:30 m.wi...@sap.com wrote: > 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:* jenkin...@googlegroups.com <jenkin...@googlegroups.com> *On > Behalf Of *Nikhil Bhoski > *Sent:* Dienstag, 5. September 2023 18:24 > *To:* Jenkins Developers <jenkin...@googlegroups.com> > *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 m.wi...@sap.com 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:* jenkin...@googlegroups.com <jenkin...@googlegroups.com> *On > Behalf Of *Nikhil Bhoski > *Sent:* Dienstag, 5. September 2023 12:19 > *To:* Jenkins Developers <jenkin...@googlegroups.com> > *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 jenkinsci-de...@googlegroups.com. > 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 jenkinsci-de...@googlegroups.com. > > 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 jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b5749897-01e3-4eb8-80b6-ef93ef06c070n%40googlegroups.com.