Jelly headache, page that include other page

14 views
Skip to first unread message

Nikolas Falco

unread,
Dec 3, 2021, 9:56:44 AM12/3/21
to Jenkins Developers
Hi, I have an issue in NodeJS plugin with feature https://issues.jenkins.io/browse/JENKINS-64646

Everytime I try to fix an issue for that feature in develop mode (hpi:run) all works like a charm, but when I release and install the hpi in a jenkins I have different behaviors.

The feature ask to propose a new Installer tool.
Actually I have a NodeJSInstaller that extends DownloadFromUrlInstaller and include its jelly page. It works great.
The feature add a MirrorJSInstaller that extends NodeJSInstaller.
This installer add two new fields and include the NodeJSInstaller jelly page.
What not does not work is that the additional fields in Mirror....Descriptor call method in superclass (that do not exists) instead of itself.
For example:
this is the request
http.../descriptorByName/hudson.plugins.nodejs.tools.NodeJSInstaller/fillCredentialsIdItems
but the expected is
http.../descriptorByName/hudson.plugins.nodejs.tools.MirrorNodeJSInstaller/fillCredentialsIdItems

In a real installation the request return 404 but in develop (hpi:run) it works and the method in MirrorJSInstaller is called.


Someone could point me to the direction where I have to look. JELLY is a big horrible animal that hides too much (also the documentation in most of cases)

Thanks in advance to all

Jesse Glick

unread,
Dec 3, 2021, 10:33:41 AM12/3/21
to jenkin...@googlegroups.com

Nikolas Falco

unread,
Dec 3, 2021, 11:18:23 AM12/3/21
to Jenkins Developers
THANKS!!!!
It seems was the cause why the url did change (but not the reason why in develop mode works).
Copy/Paste from NodeJSInstaller descriptor to the new one, I did not see that method.

The reason of that getId method is because of
> Obtained the updated data file for hudson.plugins.nodejs.tools.NodeJSInstaller
while the class is "jenkins.plugins.nodejs.tools.NodeJSInstaller". That is the file where load all available version of NodeJS
Reply all
Reply to author
Forward
0 new messages