HI all ,
I want to detect if the the project is of Matrix type or not in my
descriptor class so that i could include a jelly element or could send
just include warning message. I tried like belwo which does not work as i
dont find MatrixProject class in the jar . Please suggest how could i
detect Matrix project in my descriptor and possibly include a warring
message in my plugin build step window only for Matrix builds.
i tried below but i dont find MatrixProject class in my jar.
public boolean isMatrixProject(AbstractProject<?,?> it) {
return it instanceof MatrixProject;
}
then in jelly you just do
<j:if test="${descriptor.isMatrixProject(it)}">
...
</j:if>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.