On 05.11.2015, at 11:55, Manu Kaamelott <
manuka...@gmail.com> wrote:
> But I didn't understand how write something in the main job page. I found mainJob.jelly but that didn't work.
> I'd like to know how can I write in it. Can I use juste a ".java and .jelly" ?
Hi Manu,
First, you need to define an Action that gets associated with the Job you have.
One way to do this is TransientActionFactory, assuming you have no data to store with the job. And if you do, you need something that explicitly adds the Action to the job, and then saves the job.
Afterwards it's just a matter of adding a jobMain.jelly view to the Action, so in the regular Maven layout:
If this is your Action class: src/main/java/com/acme/my_plugin/MyAction.java
This is the Jelly view fragment shown on the job page: src/main/resources/com/acme/my_plugin/MyAction/jobMain.jelly
So it's not a Jelly file corresponding to the Java file, but rather one stored in a folder with the same name as the class and with a name determined by convention (e.g. config.jelly for parts of the job config).
Daniel