jobMain.jelly in Maven Projects

34 views
Skip to first unread message

Duarte Meneses

unread,
Mar 2, 2016, 9:20:32 AM3/2/16
to Jenkins Developers
Hi,

I'm using a TransientActionFactory to create a ProminentProjectAction which exposes a jobMain.jelly that should be rendered in the Project page, both for Freestyle Jobs and Maven Jobs.
It's working fine for Freestyle Jobs but not for Maven jobs.

I'm not sure where the jobMain.jelly is included in the Maven Job project, but it appears to be here: https://github.com/jenkinsci/maven-plugin/blob/master/src/main/resources/hudson/maven/MavenModuleSet/index.jelly#L71. If that's the case, it supports the jobMain.jelly as  AbstractProjects does for FreestyleJobs, so I don't understand the different behaviour.

Does anyone know what could be the problem?




Thanks.

Duarte Meneses




Daniel Beck

unread,
Mar 2, 2016, 11:48:23 AM3/2/16
to jenkin...@googlegroups.com

On 02.03.2016, at 15:20, Duarte Meneses <duarte....@sonarsource.com> wrote:

> Does anyone know what could be the problem?

Looks like a bug in the line just above what you link to, should be it.allActions. The difference is that this includes transient actions, while it.actions does not.

http://javadoc.jenkins-ci.org/hudson/model/Actionable.html#getActions%28%29

Duarte Meneses

unread,
Mar 3, 2016, 3:37:49 AM3/3/16
to Jenkins Developers, m...@beckweb.net
Thanks for the info Daniel.
I will confirm with some tests and submit a P/R.
Reply all
Reply to author
Forward
0 new messages