I am following the Hello-World plug-in tutorial and attempting to extend it. I am following the instructions outlined in the documentation; however, I am unable to get the side menu to appear.
This is the code for HelloWorldAction:
Here is the index.jelly code:
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:st="jelly:stapler">I don’t see the build menu on the left as the documentation describes. I continue to only see the greeting.
I am brand new to Jenkins and plug-ins.
I know I have a long way to go to learn how to build a robust plug-in,
therefore I want to make sure I understand why this is not working.
I appreciate your time.
Thanks,
Bob
The sidepanel.jelly of a run already contains a <l:side-panel>, so you would have this doubled.
Maybe you can try this like this:
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:st="jelly:stapler">
<l:layout title="Greeting">
<st:include page="sidepanel.jelly" it="${it.run}" optional="true" />
<l:main-panel>
<h1>
Name: ${it.name}
</h1>
</l:main-panel>
</l:layout>
</j:jelly>
From: jenkin...@googlegroups.com <jenkin...@googlegroups.com>
On Behalf Of Bob Pokorny
Sent: Donnerstag, 10. August 2023 21:54
To: Jenkins Developers <jenkin...@googlegroups.com>
Subject: Hello-world plugin example; unable to get side menu to appear
|
You don't often get email from rcpo...@gmail.com. Learn why this is important |
--
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/c4ba5df6-a474-4afd-9222-f4985c861197n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/AS1PR02MB784725A6DF65D46FDA6A31E18713A%40AS1PR02MB7847.eurprd02.prod.outlook.com.