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>”/>
--
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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/eb651c51-cab7-49cb-b4dd-6ee85fbb26f2n%40googlegroups.com.