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]<mailto:[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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/PAXPR02MB78616F13EB4E19C280BF852F87E8A%40PAXPR02MB7861.eurprd02.prod.outlook.com.

Reply via email to