Detect Matrix Project

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Detect Matrix Project

Nikhil Bhoski

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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Ulli Hafner
In which descriptor? And in which jelly file? Maybe you add some more context what you are trying to achieve.

Am 10.10.2018 um 07:49 schrieb Nikhil Bhoski <[hidden email]>:


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 [hidden email].
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.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/E26E3F3F-9D9F-4D7B-8D81-F404ECDD6871%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Oliver Gondža-2
In reply to this post by Nikhil Bhoski
Avoid referring to the matrix-plugin's symbols. Compare the class name
instead:

https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95

On 10/10/2018 07.49, Nikhil Bhoski wrote:

>
> 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 [hidden email]
> <mailto:[hidden email]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com 
> <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--
oliver

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/f43629ae-7f10-803a-dff6-8327fef02961%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Nikhil Bhoski
In reply to this post by Ulli Hafner
I have static class of BuildStepDescriptor . I want to warn user with specific message ,  if he/she uses the plugin with Matrix build .

so , I want to detect the project type when BuildStepDescriptor loads and send the warrning message or include simple text in jelly file if its Matrix project 
On Wednesday, 10 October 2018 13:32:53 UTC+5:30, Ullrich Hafner wrote:
In which descriptor? And in which jelly file? Maybe you add some more context what you are trying to achieve.

Am 10.10.2018 um 07:49 schrieb Nikhil Bhoski <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="TyMeE-UDAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">nikhil...@...>:


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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="TyMeE-UDAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/5ed6d634-ec4d-4d28-b3b4-e1ab69e69714%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Nikhil Bhoski
In reply to this post by Oliver Gondža-2
Thanks Oliver,

my issue is i am not able to import import hudson.matrix.MatrixBuild; i am not sure why ?

On Wednesday, 10 October 2018 14:15:40 UTC+5:30, ogondza wrote:
Avoid referring to the matrix-plugin's symbols. Compare the class name
instead:

<a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95

On 10/10/2018 07.49, Nikhil Bhoski wrote:

>
> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="_5EZrzoGAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com
> <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_5EZrzoGAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-dev+unsubscribe@...>.
> To view this discussion on the web visit
> <a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com
> <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
oliver

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Ulli Hafner
In reply to this post by Nikhil Bhoski
Is a  BuildStep visible in a MatrixProject? Did you try that? I thought a BuildStep is only visible in Pipelines.

Am 10.10.2018 um 11:02 schrieb Nikhil Bhoski <[hidden email]>:

I have static class of BuildStepDescriptor . I want to warn user with specific message ,  if he/she uses the plugin with Matrix build .

so , I want to detect the project type when BuildStepDescriptor loads and send the warrning message or include simple text in jelly file if its Matrix project 
On Wednesday, 10 October 2018 13:32:53 UTC+5:30, Ullrich Hafner wrote:
In which descriptor? And in which jelly file? Maybe you add some more context what you are trying to achieve.

Am 10.10.2018 um 07:49 schrieb Nikhil Bhoski <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="TyMeE-UDAwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" class="">nikhil...@...>:


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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="TyMeE-UDAwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" class="">jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" class="">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;" class="">https://groups.google.com/d/optout.


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/5ed6d634-ec4d-4d28-b3b4-e1ab69e69714%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/E608FE0A-F174-4872-A762-0E27290698AA%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc (540 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Ulli Hafner
In reply to this post by Nikhil Bhoski
In order to get the import resolved you need to add a dependency to matrix project. Since you don’t support matrix projects this makes no sense just for the error message;-) So better follow Oliver’s approach. 
(I think you still don’t need the warning at all since a step is not visible in a Matrix project).

Am 10.10.2018 um 11:10 schrieb Nikhil Bhoski <[hidden email]>:

Thanks Oliver,

my issue is i am not able to import import hudson.matrix.MatrixBuild; i am not sure why ?

On Wednesday, 10 October 2018 14:15:40 UTC+5:30, ogondza wrote:
Avoid referring to the matrix-plugin's symbols. Compare the class name 
instead: 

https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95 

On 10/10/2018 07.49, Nikhil Bhoski wrote: 

> 
> 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 jenkinsci-de...@googlegroups.com 
> <[hidden email][hidden email][hidden email]>. 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com 
> <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>. 
> For more options, visit https://groups.google.com/d/optout. 


-- 
oliver 

-- 
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/47A494C0-15B3-4638-A77C-77222E51CBDB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc (540 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Nikhil Bhoski
Thanks Ullrich , I will try Olivers approach . I could see by Build step in Matrix project . 

On Wednesday, 10 October 2018 14:47:24 UTC+5:30, Ullrich Hafner wrote:
In order to get the import resolved you need to add a dependency to matrix project. Since you don’t support matrix projects this makes no sense just for the error message;-) So better follow Oliver’s approach. 
(I think you still don’t need the warning at all since a step is not visible in a Matrix project).

Am 10.10.2018 um 11:10 schrieb Nikhil Bhoski <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="PJ5I9PUHAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">nikhil...@...>:

Thanks Oliver,

my issue is i am not able to import import hudson.matrix.MatrixBuild; i am not sure why ?

On Wednesday, 10 October 2018 14:15:40 UTC+5:30, ogondza wrote:
Avoid referring to the matrix-plugin's symbols. Compare the class name 
instead: 

<a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95 

On 10/10/2018 07.49, Nikhil Bhoski wrote: 

> 
> 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 jenkinsci-de...@<a href="http://googlegroups.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://googlegroups.com/&#39;;return true;" onclick="this.href=&#39;http://googlegroups.com/&#39;;return true;">googlegroups.com 
> <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="PJ5I9PUHAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="PJ5I9PUHAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-dev+<a href="javascript:" target="_blank" gdf-obfuscated-mailto="PJ5I9PUHAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">unsubscribe@...>. 
> To view this discussion on the web visit 
> <a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com 
> <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>. 
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout. 


-- 
oliver 

-- 
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 <a href="javascript:" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" gdf-obfuscated-mailto="PJ5I9PUHAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&amp;utm_source=footer" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Ulli Hafner
Hmm, which base class are you extending in your step? Are you implementing SimpleBuildStep as well?

Am 10.10.2018 um 11:24 schrieb Nikhil Bhoski <[hidden email]>:

Thanks Ullrich , I will try Olivers approach . I could see by Build step in Matrix project . 

On Wednesday, 10 October 2018 14:47:24 UTC+5:30, Ullrich Hafner wrote:
In order to get the import resolved you need to add a dependency to matrix project. Since you don’t support matrix projects this makes no sense just for the error message;-) So better follow Oliver’s approach. 
(I think you still don’t need the warning at all since a step is not visible in a Matrix project).

Am 10.10.2018 um 11:10 schrieb Nikhil Bhoski <[hidden email]>:

Thanks Oliver,

my issue is i am not able to import import hudson.matrix.MatrixBuild; i am not sure why ?

On Wednesday, 10 October 2018 14:15:40 UTC+5:30, ogondza wrote:
Avoid referring to the matrix-plugin's symbols. Compare the class name 
instead: 

https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95 

On 10/10/2018 07.49, Nikhil Bhoski wrote: 

> 
> 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 jenkinsci-de...@googlegroups.com 
> <mailto:jenkinsci-dev+unsubscr[hidden email]>. 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com 
> <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>. 
> For more options, visit https://groups.google.com/d/optout. 


-- 
oliver 

-- 
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/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/A53ACCB9-6EDC-440E-B9E5-6E0C5D6925CC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc (540 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Nikhil Bhoski
Yes , thats right i am extending Builder & implementing SimpleBuildStep . 

I tried Oliver's solution however the static method within my desriptor which extends BuildStepDescriptor is not seem to returning any class name I wrote below method in my descriptor class . am I missing something here ?

public static String isMatrix(AbstractBuild<?, ?> build){
   return build.getClass().getName();
}

I am accessing the string value in my config.jelly  like below 

<j:if test="${descriptor.isMatrix(build)}">
  ...
</j:if> 

On Wednesday, 10 October 2018 15:57:18 UTC+5:30, Ullrich Hafner wrote:
Hmm, which base class are you extending in your step? Are you implementing SimpleBuildStep as well?

Am 10.10.2018 um 11:24 schrieb Nikhil Bhoski <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="qWWMccYLAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">nikhil...@...>:

Thanks Ullrich , I will try Olivers approach . I could see by Build step in Matrix project . 

On Wednesday, 10 October 2018 14:47:24 UTC+5:30, Ullrich Hafner wrote:
In order to get the import resolved you need to add a dependency to matrix project. Since you don’t support matrix projects this makes no sense just for the error message;-) So better follow Oliver’s approach. 
(I think you still don’t need the warning at all since a step is not visible in a Matrix project).

Am 10.10.2018 um 11:10 schrieb Nikhil Bhoski <[hidden email]>:

Thanks Oliver,

my issue is i am not able to import import hudson.matrix.MatrixBuild; i am not sure why ?

On Wednesday, 10 October 2018 14:15:40 UTC+5:30, ogondza wrote:
Avoid referring to the matrix-plugin's symbols. Compare the class name 
instead: 

<a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95 

On 10/10/2018 07.49, Nikhil Bhoski wrote: 

> 
> 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 jenkinsci-de...@<a href="http://googlegroups.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://googlegroups.com/&#39;;return true;" onclick="this.href=&#39;http://googlegroups.com/&#39;;return true;">googlegroups.com 
> <mailto:jenkinsci-dev+unsubscr[hidden email]>. 
> To view this discussion on the web visit 
> <a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com 
> <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>. 
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout. 


-- 
oliver 

-- 
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 <a href="https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&amp;utm_source=footer" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="qWWMccYLAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Oliver Gondža-2
It is strange it does not return anything. Though I am unsure what
happens when you use boolean as a jelly test condition. This is what I
had in mind (untested):

public boolean isMatrix(AbstractBuild<?, ?> build){
     return "hudson.matrix.MatrixBuild".equals(build.getClass().getName());
}

On 10/10/2018 13.26, Nikhil Bhoski wrote:

> Yes , thats right i am extending Builder & implementing SimpleBuildStep .
>
> I tried Oliver's solution however the static method within my desriptor
> which extends BuildStepDescriptor is not seem to returning any class
> name I wrote below method in my descriptor class . am I missing
> something here ?
>
> public static String isMatrix(AbstractBuild<?, ?> build){
>     return build.getClass().getName();
> }
>
> I am accessing the string value in my config.jelly  like below
>
> <j:if test="${descriptor.isMatrix(build)}">
>    ...
> </j:if>
>
> On Wednesday, 10 October 2018 15:57:18 UTC+5:30, Ullrich Hafner wrote:
>
>     Hmm, which base class are you extending in your step? Are you
>     implementing SimpleBuildStep as well?
>
>>     Am 10.10.2018 um 11:24 schrieb Nikhil Bhoski <[hidden email]
>>     <javascript:>>:
>>
>>     Thanks Ullrich , I will try Olivers approach . I could see by
>>     Build step in Matrix project .
>>
>>     On Wednesday, 10 October 2018 14:47:24 UTC+5:30, Ullrich Hafner wrote:
>>
>>         In order to get the import resolved you need to add a
>>         dependency to matrix project. Since you don’t support matrix
>>         projects this makes no sense just for the error message;-) So
>>         better follow Oliver’s approach.
>>         (I think you still don’t need the warning at all since a step
>>         is not visible in a Matrix project).
>>
>>>         Am 10.10.2018 um 11:10 schrieb Nikhil Bhoski
>>>         <[hidden email]>:
>>>
>>>         Thanks Oliver,
>>>
>>>         my issue is i am not able to import
>>>         importhudson.matrix.MatrixBuild; i am not sure why ?
>>>
>>>         On Wednesday, 10 October 2018 14:15:40 UTC+5:30, ogondza wrote:
>>>
>>>             Avoid referring to the matrix-plugin's symbols. Compare
>>>             the class name
>>>             instead:
>>>
>>>             https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95
>>>             <https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95>
>>>
>>>             On 10/10/2018 07.49, Nikhil Bhoski wrote:
>>>             >
>>>             > 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 [hidden email]
>>>             <http://googlegroups.com/>
>>>             > <mailto:[hidden email]>.
>>>             > To view this discussion on the web visit
>>>             >https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com
>>>             <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com>
>>>             >
>>>             <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer
>>>             <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>>>             > For more options,
>>>             visithttps://groups.google.com/d/optout
>>>             <https://groups.google.com/d/optout>.
>>>
>>>
>>>             --
>>>             oliver
>>>
>>>
>>>         --
>>>         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 [hidden email].
>>>         To view this discussion on the web
>>>         visithttps://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com
>>>         <https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>>         For more options, visithttps://groups.google.com/d/optout
>>>         <https://groups.google.com/d/optout>.
>>
>>
>>     --
>>     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 [hidden email] <javascript:>.
>>     To view this discussion on the web visit
>>     https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com
>>     <https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>     For more options, visit https://groups.google.com/d/optout
>>     <https://groups.google.com/d/optout>.
>
> --
> 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 [hidden email]
> <mailto:[hidden email]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com 
> <https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--
oliver

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/132c3af7-2d1b-5818-67c6-2706fbe0b07f%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Nikhil Bhoski
No Luck !

i used the same method as you suggested and then added below in config.jelly . When i created multiconfig project in jenkins it does not include Matrix text box entry . 

<j:if test="${descriptor.isMatrix(build)}">
       <f:entry title="MatrixBuild" field="Matrix">
        <f:textbox/>
  </f:entry> 
 </j:if> 



On Wednesday, 10 October 2018 17:06:48 UTC+5:30, ogondza wrote:
It is strange it does not return anything. Though I am unsure what
happens when you use boolean as a jelly test condition. This is what I
had in mind (untested):

public boolean isMatrix(AbstractBuild<?, ?> build){
     return "hudson.matrix.MatrixBuild".equals(build.getClass().getName());
}

On 10/10/2018 13.26, Nikhil Bhoski wrote:

> Yes , thats right i am extending Builder & implementing SimpleBuildStep .
>
> I tried Oliver's solution however the static method within my desriptor
> which extends BuildStepDescriptor is not seem to returning any class
> name I wrote below method in my descriptor class . am I missing
> something here ?
>
> public static String isMatrix(AbstractBuild<?, ?> build){
>     return build.getClass().getName();
> }
>
> I am accessing the string value in my config.jelly  like below
>
> <j:if test="${descriptor.isMatrix(build)}">
>    ...
> </j:if>
>
> On Wednesday, 10 October 2018 15:57:18 UTC+5:30, Ullrich Hafner wrote:
>
>     Hmm, which base class are you extending in your step? Are you
>     implementing SimpleBuildStep as well?
>
>>     Am 10.10.2018 um 11:24 schrieb Nikhil Bhoski <[hidden email]
>>     <javascript:>>:
>>
>>     Thanks Ullrich , I will try Olivers approach . I could see by
>>     Build step in Matrix project .
>>
>>     On Wednesday, 10 October 2018 14:47:24 UTC+5:30, Ullrich Hafner wrote:
>>
>>         In order to get the import resolved you need to add a
>>         dependency to matrix project. Since you don’t support matrix
>>         projects this makes no sense just for the error message;-) So
>>         better follow Oliver’s approach.
>>         (I think you still don’t need the warning at all since a step
>>         is not visible in a Matrix project).
>>
>>>         Am 10.10.2018 um 11:10 schrieb Nikhil Bhoski
>>>         <[hidden email]>:
>>>
>>>         Thanks Oliver,
>>>
>>>         my issue is i am not able to import
>>>         importhudson.matrix.MatrixBuild; i am not sure why ?
>>>
>>>         On Wednesday, 10 October 2018 14:15:40 UTC+5:30, ogondza wrote:
>>>
>>>             Avoid referring to the matrix-plugin's symbols. Compare
>>>             the class name
>>>             instead:
>>>
>>>             <a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95
>>>             <<a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95>
>>>
>>>             On 10/10/2018 07.49, Nikhil Bhoski wrote:
>>>             >
>>>             > 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 tojenkinsci-de...@googlegroups.com
>>>             <<a href="http://googlegroups.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://googlegroups.com/&#39;;return true;" onclick="this.href=&#39;http://googlegroups.com/&#39;;return true;">http://googlegroups.com/>
>>>             > <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="dXpLVZEPAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-dev+unsubscribe@...>.
>>>             > To view this discussion on the web visit
>>>             ><a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com
>>>             <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com>
>>>             >
>>>             <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer
>>>             <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>>>             > For more options,
>>>             visithttps://<a href="http://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;">groups.google.com/d/optout
>>>             <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>.
>>>
>>>
>>>             --
>>>             oliver
>>>
>>>
>>>         --
>>>         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 tojenkinsci-de...@googlegroups.com.
>>>         To view this discussion on the web
>>>         visithttps://<a href="http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com&#39;;return true;">groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com
>>>         <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>>         For more options, visithttps://<a href="http://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;">groups.google.com/d/optout
>>>         <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>.
>>
>>
>>     --
>>     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 <javascript:>.
>>     To view this discussion on the web visit
>>     <a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com
>>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>     For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>>     <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>.
>
> --
> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="dXpLVZEPAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com
> <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="dXpLVZEPAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-dev+unsubscribe@...>.
> To view this discussion on the web visit
> <a href="https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com
> <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
oliver

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Oliver Gondža-2
The next investigation steps are to see what
`${descriptor.isMatrix(build)}` alone prints in jelly, whether the
(correct) method is invoked and if yes, what is the value of
`build.getClass()`.

On 10/10/2018 13.53, Nikhil Bhoski wrote:

> No Luck !
>
> i used the same method as you suggested and then added below in
> config.jelly . When i created multiconfig project in jenkins it does not
> include Matrix text box entry .
>
> *<j:if test="${descriptor.isMatrix(build)}">*
> *       <f:entry title="MatrixBuild" field="Matrix">*
> *        <f:textbox/>*
> *  </f:entry> *
> * </j:if> *
>
>
>
> On Wednesday, 10 October 2018 17:06:48 UTC+5:30, ogondza wrote:
>
>     It is strange it does not return anything. Though I am unsure what
>     happens when you use boolean as a jelly test condition. This is what I
>     had in mind (untested):
>
>     public boolean isMatrix(AbstractBuild<?, ?> build){
>           return
>     "hudson.matrix.MatrixBuild".equals(build.getClass().getName());
>     }
>
>     On 10/10/2018 13.26, Nikhil Bhoski wrote:
>      > Yes , thats right i am extending Builder & implementing
>     SimpleBuildStep .
>      >
>      > I tried Oliver's solution however the static method within my
>     desriptor
>      > which extends BuildStepDescriptor is not seem to returning any class
>      > name I wrote below method in my descriptor class . am I missing
>      > something here ?
>      >
>      > public static String isMatrix(AbstractBuild<?, ?> build){
>      >     return build.getClass().getName();
>      > }
>      >
>      > I am accessing the string value in my config.jelly  like below
>      >
>      > <j:if test="${descriptor.isMatrix(build)}">
>      >    ...
>      > </j:if>
>      >
>      > On Wednesday, 10 October 2018 15:57:18 UTC+5:30, Ullrich Hafner
>     wrote:
>      >
>      >     Hmm, which base class are you extending in your step? Are you
>      >     implementing SimpleBuildStep as well?
>      >
>      >>     Am 10.10.2018 um 11:24 schrieb Nikhil Bhoski
>     <[hidden email]
>      >>     <javascript:>>:
>      >>
>      >>     Thanks Ullrich , I will try Olivers approach . I could see by
>      >>     Build step in Matrix project .
>      >>
>      >>     On Wednesday, 10 October 2018 14:47:24 UTC+5:30, Ullrich
>     Hafner wrote:
>      >>
>      >>         In order to get the import resolved you need to add a
>      >>         dependency to matrix project. Since you don’t support
>     matrix
>      >>         projects this makes no sense just for the error
>     message;-) So
>      >>         better follow Oliver’s approach.
>      >>         (I think you still don’t need the warning at all since a
>     step
>      >>         is not visible in a Matrix project).
>      >>
>      >>>         Am 10.10.2018 um 11:10 schrieb Nikhil Bhoski
>      >>>         <[hidden email]>:
>      >>>
>      >>>         Thanks Oliver,
>      >>>
>      >>>         my issue is i am not able to import
>      >>>         importhudson.matrix.MatrixBuild; i am not sure why ?
>      >>>
>      >>>         On Wednesday, 10 October 2018 14:15:40 UTC+5:30,
>     ogondza wrote:
>      >>>
>      >>>             Avoid referring to the matrix-plugin's symbols.
>     Compare
>      >>>             the class name
>      >>>             instead:
>      >>>
>      >>>
>     https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95
>     <https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95>
>
>      >>>            
>     <https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95
>     <https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95>>
>
>      >>>
>      >>>             On 10/10/2018 07.49, Nikhil Bhoski wrote:
>      >>>             >
>      >>>             > 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 [hidden email]
>      >>>             <http://googlegroups.com/>
>      >>>             >
>     <mailto:[hidden email] <javascript:>>.
>      >>>             > To view this discussion on the web visit
>      >>>            
>      >https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com>
>      >>>            
>     <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com
>     <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com>>
>
>      >>>             >
>      >>>            
>     <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer
>     <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>
>
>      >>>            
>     <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer
>     <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
>
>      >>>             > For more options,
>      >>>             visithttps://groups.google.com/d/optout
>     <http://groups.google.com/d/optout>
>      >>>             <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>>.
>      >>>
>      >>>
>      >>>             --
>      >>>             oliver
>      >>>
>      >>>
>      >>>         --
>      >>>         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 [hidden email].
>      >>>         To view this discussion on the web
>      >>>        
>     visithttps://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com
>     <http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com>
>
>      >>>        
>     <https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&utm_source=footer
>     <https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>      >>>         For more options,
>     visithttps://groups.google.com/d/optout
>     <http://groups.google.com/d/optout>
>      >>>         <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>>.
>      >>
>      >>
>      >>     --
>      >>     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 [hidden email]
>     <javascript:>.
>      >>     To view this discussion on the web visit
>      >>
>     https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com
>     <https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com>
>
>      >>    
>     <https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&utm_source=footer
>     <https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>      >>     For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>
>      >>     <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>>.
>      >
>      > --
>      > 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 [hidden email] <javascript:>
>      > <mailto:[hidden email] <javascript:>>.
>      > To view this discussion on the web visit
>      >
>     https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com
>     <https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com>
>
>      >
>     <https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&utm_source=footer
>     <https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>      > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>
>
>     --
>     oliver
>
> --
> 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 [hidden email]
> <mailto:[hidden email]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com 
> <https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--
oliver

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/1aee573f-d462-a11e-95ab-a13e1fd8e6fa%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Nikhil Bhoski
"${descriptor.isMatrix(build)}" prints nothing except for two quotes . 

On Wednesday, 10 October 2018 17:57:09 UTC+5:30, ogondza wrote:
The next investigation steps are to see what
`${descriptor.isMatrix(build)}` alone prints in jelly, whether the
(correct) method is invoked and if yes, what is the value of
`build.getClass()`.

On 10/10/2018 13.53, Nikhil Bhoski wrote:

> No Luck !
>
> i used the same method as you suggested and then added below in
> config.jelly . When i created multiconfig project in jenkins it does not
> include Matrix text box entry .
>
> *<j:if test="${descriptor.isMatrix(build)}">*
> *       <f:entry title="MatrixBuild" field="Matrix">*
> *        <f:textbox/>*
> *  </f:entry> *
> * </j:if> *
>
>
>
> On Wednesday, 10 October 2018 17:06:48 UTC+5:30, ogondza wrote:
>
>     It is strange it does not return anything. Though I am unsure what
>     happens when you use boolean as a jelly test condition. This is what I
>     had in mind (untested):
>
>     public boolean isMatrix(AbstractBuild<?, ?> build){
>           return
>     "hudson.matrix.MatrixBuild".equals(build.getClass().getName());
>     }
>
>     On 10/10/2018 13.26, Nikhil Bhoski wrote:
>      > Yes , thats right i am extending Builder & implementing
>     SimpleBuildStep .
>      >
>      > I tried Oliver's solution however the static method within my
>     desriptor
>      > which extends BuildStepDescriptor is not seem to returning any class
>      > name I wrote below method in my descriptor class . am I missing
>      > something here ?
>      >
>      > public static String isMatrix(AbstractBuild<?, ?> build){
>      >     return build.getClass().getName();
>      > }
>      >
>      > I am accessing the string value in my config.jelly  like below
>      >
>      > <j:if test="${descriptor.isMatrix(build)}">
>      >    ...
>      > </j:if>
>      >
>      > On Wednesday, 10 October 2018 15:57:18 UTC+5:30, Ullrich Hafner
>     wrote:
>      >
>      >     Hmm, which base class are you extending in your step? Are you
>      >     implementing SimpleBuildStep as well?
>      >
>      >>     Am 10.10.2018 um 11:24 schrieb Nikhil Bhoski
>     <[hidden email]
>      >>     <javascript:>>:
>      >>
>      >>     Thanks Ullrich , I will try Olivers approach . I could see by
>      >>     Build step in Matrix project .
>      >>
>      >>     On Wednesday, 10 October 2018 14:47:24 UTC+5:30, Ullrich
>     Hafner wrote:
>      >>
>      >>         In order to get the import resolved you need to add a
>      >>         dependency to matrix project. Since you don’t support
>     matrix
>      >>         projects this makes no sense just for the error
>     message;-) So
>      >>         better follow Oliver’s approach.
>      >>         (I think you still don’t need the warning at all since a
>     step
>      >>         is not visible in a Matrix project).
>      >>
>      >>>         Am 10.10.2018 um 11:10 schrieb Nikhil Bhoski
>      >>>         <[hidden email]>:
>      >>>
>      >>>         Thanks Oliver,
>      >>>
>      >>>         my issue is i am not able to import
>      >>>         importhudson.matrix.MatrixBuild; i am not sure why ?
>      >>>
>      >>>         On Wednesday, 10 October 2018 14:15:40 UTC+5:30,
>     ogondza wrote:
>      >>>
>      >>>             Avoid referring to the matrix-plugin's symbols.
>     Compare
>      >>>             the class name
>      >>>             instead:
>      >>>
>      >>>
>     <a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95
>     <<a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95>
>
>      >>>            
>     <<a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95
>     <<a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95>>
>
>      >>>
>      >>>             On 10/10/2018 07.49, Nikhil Bhoski wrote:
>      >>>             >
>      >>>             > 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 tojenkinsci-de...@googlegroups.com
>      >>>             <<a href="http://googlegroups.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://googlegroups.com/&#39;;return true;" onclick="this.href=&#39;http://googlegroups.com/&#39;;return true;">http://googlegroups.com/>
>      >>>             >
>     <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="szLp2lASAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-dev+unsubscribe@... <javascript:>>.
>      >>>             > To view this discussion on the web visit
>      >>>            
>      ><a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com>
>      >>>            
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com>>
>
>      >>>             >
>      >>>            
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>
>
>      >>>            
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
>
>      >>>             > For more options,
>      >>>             visithttps://<a href="http://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;">groups.google.com/d/optout
>     <<a href="http://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;">http://groups.google.com/d/optout>
>      >>>             <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>     <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>>.
>      >>>
>      >>>
>      >>>             --
>      >>>             oliver
>      >>>
>      >>>
>      >>>         --
>      >>>         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 tojenkinsci-de...@googlegroups.com.
>      >>>         To view this discussion on the web
>      >>>        
>     visithttps://<a href="http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com&#39;;return true;">groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com
>     <<a href="http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com&#39;;return true;">http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com>
>
>      >>>        
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&utm_source=footer
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>      >>>         For more options,
>     visithttps://<a href="http://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;">groups.google.com/d/optout
>     <<a href="http://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;">http://groups.google.com/d/optout>
>      >>>         <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>     <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>>.
>      >>
>      >>
>      >>     --
>      >>     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
>     <javascript:>.
>      >>     To view this discussion on the web visit
>      >>
>     <a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com>
>
>      >>    
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&utm_source=footer
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>      >>     For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>     <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>
>      >>     <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>     <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>>.
>      >
>      > --
>      > 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 <javascript:>
>      > <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="szLp2lASAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-dev+unsubscribe@... <javascript:>>.
>      > To view this discussion on the web visit
>      >
>     <a href="https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com>
>
>      >
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&utm_source=footer
>     <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>      > For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>     <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>.
>
>
>     --
>     oliver
>
> --
> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="szLp2lASAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com
> <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="szLp2lASAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-dev+unsubscribe@...>.
> To view this discussion on the web visit
> <a href="https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com
> <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
oliver

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/808cd7ed-9acb-421f-a7cc-e32439292e39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Ulli Hafner
In reply to this post by Oliver Gondža-2
I am still wondering why you implement SinmpleBuildStep. This is for Matrix and Freestyle steps so that they are usable in pipelines. But as far as I understand you are supporting only pipelines?

--  
Ulli - Typed with big thumbs on small phone

> Am 10.10.2018 um 14:27 schrieb Oliver Gondža <[hidden email]>:
>
> The next investigation steps are to see what `${descriptor.isMatrix(build)}` alone prints in jelly, whether the (correct) method is invoked and if yes, what is the value of `build.getClass()`.
>
>> On 10/10/2018 13.53, Nikhil Bhoski wrote:
>> No Luck !
>> i used the same method as you suggested and then added below in config.jelly . When i created multiconfig project in jenkins it does not include Matrix text box entry .
>> *<j:if test="${descriptor.isMatrix(build)}">*
>> *       <f:entry title="MatrixBuild" field="Matrix">*
>> *        <f:textbox/>*
>> *  </f:entry> *
>> * </j:if> *
>> On Wednesday, 10 October 2018 17:06:48 UTC+5:30, ogondza wrote:
>>    It is strange it does not return anything. Though I am unsure what
>>    happens when you use boolean as a jelly test condition. This is what I
>>    had in mind (untested):
>>    public boolean isMatrix(AbstractBuild<?, ?> build){
>>          return
>>    "hudson.matrix.MatrixBuild".equals(build.getClass().getName());
>>    }
>>    On 10/10/2018 13.26, Nikhil Bhoski wrote:
>>     > Yes , thats right i am extending Builder & implementing
>>    SimpleBuildStep .
>>     >
>>     > I tried Oliver's solution however the static method within my
>>    desriptor
>>     > which extends BuildStepDescriptor is not seem to returning any class
>>     > name I wrote below method in my descriptor class . am I missing
>>     > something here ?
>>     >
>>     > public static String isMatrix(AbstractBuild<?, ?> build){
>>     >     return build.getClass().getName();
>>     > }
>>     >
>>     > I am accessing the string value in my config.jelly  like below
>>     >
>>     > <j:if test="${descriptor.isMatrix(build)}">
>>     >    ...
>>     > </j:if>
>>     >
>>     > On Wednesday, 10 October 2018 15:57:18 UTC+5:30, Ullrich Hafner
>>    wrote:
>>     >
>>     >     Hmm, which base class are you extending in your step? Are you
>>     >     implementing SimpleBuildStep as well?
>>     >
>>     >>     Am 10.10.2018 um 11:24 schrieb Nikhil Bhoski
>>    <[hidden email]
>>     >>     <javascript:>>:
>>     >>
>>     >>     Thanks Ullrich , I will try Olivers approach . I could see by
>>     >>     Build step in Matrix project .
>>     >>
>>     >>     On Wednesday, 10 October 2018 14:47:24 UTC+5:30, Ullrich
>>    Hafner wrote:
>>     >>
>>     >>         In order to get the import resolved you need to add a
>>     >>         dependency to matrix project. Since you don’t support
>>    matrix
>>     >>         projects this makes no sense just for the error
>>    message;-) So
>>     >>         better follow Oliver’s approach.
>>     >>         (I think you still don’t need the warning at all since a
>>    step
>>     >>         is not visible in a Matrix project).
>>     >>
>>     >>>         Am 10.10.2018 um 11:10 schrieb Nikhil Bhoski
>>     >>>         <[hidden email]>:
>>     >>>
>>     >>>         Thanks Oliver,
>>     >>>
>>     >>>         my issue is i am not able to import
>>     >>>         importhudson.matrix.MatrixBuild; i am not sure why ?
>>     >>>
>>     >>>         On Wednesday, 10 October 2018 14:15:40 UTC+5:30,
>>    ogondza wrote:
>>     >>>
>>     >>>             Avoid referring to the matrix-plugin's symbols.
>>    Compare
>>     >>>             the class name
>>     >>>             instead:
>>     >>>
>>     >>>
>>    https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95
>>    <https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95>
>>     >>>                <https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95
>>    <https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95>>
>>     >>>
>>     >>>             On 10/10/2018 07.49, Nikhil Bhoski wrote:
>>     >>>             >
>>     >>>             > 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 [hidden email]
>>     >>>             <http://googlegroups.com/>
>>     >>>             >
>>    <mailto:[hidden email] <javascript:>>.
>>     >>>             > To view this discussion on the web visit
>>     >>>                 >https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com>
>>     >>>                <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com
>>    <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com>>
>>     >>>             >
>>     >>>                <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer
>>    <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>
>>     >>>                <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer
>>    <https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
>>     >>>             > For more options,
>>     >>>             visithttps://groups.google.com/d/optout
>>    <http://groups.google.com/d/optout>
>>     >>>             <https://groups.google.com/d/optout
>>    <https://groups.google.com/d/optout>>.
>>     >>>
>>     >>>
>>     >>>             --
>>     >>>             oliver
>>     >>>
>>     >>>
>>     >>>         --
>>     >>>         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 [hidden email].
>>     >>>         To view this discussion on the web
>>     >>>            visithttps://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com
>>    <http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com>
>>     >>>            <https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&utm_source=footer
>>    <https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>>     >>>         For more options,
>>    visithttps://groups.google.com/d/optout
>>    <http://groups.google.com/d/optout>
>>     >>>         <https://groups.google.com/d/optout
>>    <https://groups.google.com/d/optout>>.
>>     >>
>>     >>
>>     >>     --
>>     >>     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 [hidden email]
>>    <javascript:>.
>>     >>     To view this discussion on the web visit
>>     >>
>>    https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com
>>    <https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com>
>>     >>        <https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&utm_source=footer
>>    <https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>>     >>     For more options, visit https://groups.google.com/d/optout
>>    <https://groups.google.com/d/optout>
>>     >>     <https://groups.google.com/d/optout
>>    <https://groups.google.com/d/optout>>.
>>     >
>>     > --
>>     > 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 [hidden email] <javascript:>
>>     > <mailto:[hidden email] <javascript:>>.
>>     > To view this discussion on the web visit
>>     >
>>    https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com
>>    <https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com>
>>     >
>>    <https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&utm_source=footer
>>    <https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>>     > For more options, visit https://groups.google.com/d/optout
>>    <https://groups.google.com/d/optout>.
>>    --     oliver
>> --
>> 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 [hidden email] <mailto:[hidden email]>.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> oliver
>
> --
> 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 [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/1aee573f-d462-a11e-95ab-a13e1fd8e6fa%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/73BD212F-777B-4546-8877-53C67CFBA996%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Nikhil Bhoski
may be i am not understanding this correctly , but i have plugin with proper UI elements which will be invoked through build step for all project types including freestyle/Matrix etc . i have intention of supporting it to pipeline as well but its in future . currently my intention is not to support pipeline . does that make any sense ? 

On Wednesday, 10 October 2018 18:14:58 UTC+5:30, Ullrich Hafner wrote:
I am still wondering why you implement SinmpleBuildStep. This is for Matrix and Freestyle steps so that they are usable in pipelines. But as far as I understand you are supporting only pipelines?

--  
Ulli - Typed with big thumbs on small phone

> Am 10.10.2018 um 14:27 schrieb Oliver Gondža <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="7MYDwkkTAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ogo...@...>:
>
> The next investigation steps are to see what `${descriptor.isMatrix(build)}` alone prints in jelly, whether the (correct) method is invoked and if yes, what is the value of `build.getClass()`.
>
>> On 10/10/2018 13.53, Nikhil Bhoski wrote:
>> No Luck !
>> i used the same method as you suggested and then added below in config.jelly . When i created multiconfig project in jenkins it does not include Matrix text box entry .
>> *<j:if test="${descriptor.isMatrix(build)}">*
>> *       <f:entry title="MatrixBuild" field="Matrix">*
>> *        <f:textbox/>*
>> *  </f:entry> *
>> * </j:if> *
>> On Wednesday, 10 October 2018 17:06:48 UTC+5:30, ogondza wrote:
>>    It is strange it does not return anything. Though I am unsure what
>>    happens when you use boolean as a jelly test condition. This is what I
>>    had in mind (untested):
>>    public boolean isMatrix(AbstractBuild<?, ?> build){
>>          return
>>    "hudson.matrix.MatrixBuild".equals(build.getClass().getName());
>>    }
>>    On 10/10/2018 13.26, Nikhil Bhoski wrote:
>>     > Yes , thats right i am extending Builder & implementing
>>    SimpleBuildStep .
>>     >
>>     > I tried Oliver's solution however the static method within my
>>    desriptor
>>     > which extends BuildStepDescriptor is not seem to returning any class
>>     > name I wrote below method in my descriptor class . am I missing
>>     > something here ?
>>     >
>>     > public static String isMatrix(AbstractBuild<?, ?> build){
>>     >     return build.getClass().getName();
>>     > }
>>     >
>>     > I am accessing the string value in my config.jelly  like below
>>     >
>>     > <j:if test="${descriptor.isMatrix(build)}">
>>     >    ...
>>     > </j:if>
>>     >
>>     > On Wednesday, 10 October 2018 15:57:18 UTC+5:30, Ullrich Hafner
>>    wrote:
>>     >
>>     >     Hmm, which base class are you extending in your step? Are you
>>     >     implementing SimpleBuildStep as well?
>>     >
>>     >>     Am 10.10.2018 um 11:24 schrieb Nikhil Bhoski
>>    <[hidden email]
>>     >>     <javascript:>>:
>>     >>
>>     >>     Thanks Ullrich , I will try Olivers approach . I could see by
>>     >>     Build step in Matrix project .
>>     >>
>>     >>     On Wednesday, 10 October 2018 14:47:24 UTC+5:30, Ullrich
>>    Hafner wrote:
>>     >>
>>     >>         In order to get the import resolved you need to add a
>>     >>         dependency to matrix project. Since you don’t support
>>    matrix
>>     >>         projects this makes no sense just for the error
>>    message;-) So
>>     >>         better follow Oliver’s approach.
>>     >>         (I think you still don’t need the warning at all since a
>>    step
>>     >>         is not visible in a Matrix project).
>>     >>
>>     >>>         Am 10.10.2018 um 11:10 schrieb Nikhil Bhoski
>>     >>>         <[hidden email]>:
>>     >>>
>>     >>>         Thanks Oliver,
>>     >>>
>>     >>>         my issue is i am not able to import
>>     >>>         importhudson.matrix.MatrixBuild; i am not sure why ?
>>     >>>
>>     >>>         On Wednesday, 10 October 2018 14:15:40 UTC+5:30,
>>    ogondza wrote:
>>     >>>
>>     >>>             Avoid referring to the matrix-plugin's symbols.
>>    Compare
>>     >>>             the class name
>>     >>>             instead:
>>     >>>
>>     >>>
>>    <a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95
>>    <<a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95>
>>     >>>                <<a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95
>>    <<a href="https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fjunit-realtime-test-reporter-plugin%2Fblob%2F561b341c94890393fe494f63c5c2becaa251ceae%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fjunitrealtimetestreporter%2FRealtimeTestResultAction.java%23L95\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG8ClNPU42VvJLu9P5T_QR_mbuo4g&#39;;return true;">https://github.com/jenkinsci/junit-realtime-test-reporter-plugin/blob/561b341c94890393fe494f63c5c2becaa251ceae/src/main/java/org/jenkinsci/plugins/junitrealtimetestreporter/RealtimeTestResultAction.java#L95>>
>>     >>>
>>     >>>             On 10/10/2018 07.49, Nikhil Bhoski wrote:
>>     >>>             >
>>     >>>             > 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 tojenkinsci-de...@googlegroups.com
>>     >>>             <<a href="http://googlegroups.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://googlegroups.com/&#39;;return true;" onclick="this.href=&#39;http://googlegroups.com/&#39;;return true;">http://googlegroups.com/>
>>     >>>             >
>>    <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="7MYDwkkTAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-dev+unsubscribe@... <javascript:>>.
>>     >>>             > To view this discussion on the web visit
>>     >>>                 ><a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com>
>>     >>>                <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com
>>    <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com>>
>>     >>>             >
>>     >>>                <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer
>>    <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>
>>     >>>                <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer
>>    <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7fa1e0a5-68a2-4f06-a596-23043061a690%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
>>     >>>             > For more options,
>>     >>>             visithttps://<a href="http://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;">groups.google.com/d/optout
>>    <<a href="http://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;">http://groups.google.com/d/optout>
>>     >>>             <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>>    <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>>.
>>     >>>
>>     >>>
>>     >>>             --
>>     >>>             oliver
>>     >>>
>>     >>>
>>     >>>         --
>>     >>>         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 tojenkinsci-de...@googlegroups.com.
>>     >>>         To view this discussion on the web
>>     >>>            visithttps://<a href="http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com&#39;;return true;">groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com
>>    <<a href="http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com&#39;;return true;">http://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com>
>>     >>>            <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&utm_source=footer
>>    <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/85c0f0ef-5605-41ea-9da5-d4304a1d1322%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>>     >>>         For more options,
>>    visithttps://<a href="http://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;">groups.google.com/d/optout
>>    <<a href="http://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/d/optout&#39;;return true;">http://groups.google.com/d/optout>
>>     >>>         <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>>    <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>>.
>>     >>
>>     >>
>>     >>     --
>>     >>     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
>>    <javascript:>.
>>     >>     To view this discussion on the web visit
>>     >>
>>    <a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com
>>    <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com>
>>     >>        <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&utm_source=footer
>>    <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/63d22d0f-e21f-458f-a586-72cf47a400bb%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>>     >>     For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>>    <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>
>>     >>     <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>>    <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>>.
>>     >
>>     > --
>>     > 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 <javascript:>
>>     > <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="7MYDwkkTAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-dev+unsubscribe@... <javascript:>>.
>>     > To view this discussion on the web visit
>>     >
>>    <a href="https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com
>>    <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com>
>>     >
>>    <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&utm_source=footer
>>    <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/02027d55-ab93-412e-a804-7c8c129061b7%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>>     > For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout
>>    <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout>.
>>    --     oliver
>> --
>> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="7MYDwkkTAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="7MYDwkkTAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-dev+unsubscribe@...>.
>> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com <<a href="https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/954678be-60d5-4896-a576-232668ec572a%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
>
> --
> oliver
>
> --
> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="7MYDwkkTAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/1aee573f-d462-a11e-95ab-a13e1fd8e6fa%40gmail.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/1aee573f-d462-a11e-95ab-a13e1fd8e6fa%40gmail.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/1aee573f-d462-a11e-95ab-a13e1fd8e6fa%40gmail.com&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/1aee573f-d462-a11e-95ab-a13e1fd8e6fa%40gmail.com.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/231fb408-1855-4169-ba56-5ec53a32e997%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Jesse Glick-4
On Wed, Oct 10, 2018 at 8:57 AM Nikhil Bhoski <[hidden email]> wrote:
> i have plugin with proper UI elements which will be invoked through build step for all project types including freestyle/Matrix etc . i have intention of supporting it to pipeline as well but its in future . currently my intention is not to support pipeline

Are you overriding

https://javadoc.jenkins.io/hudson/tasks/BuildStepDescriptor.html#isApplicable-java.lang.Class-

? (This is not used by Pipeline, but you can effectively decline to
support Pipeline merely by not implementing `SimpleBuildStep`.)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr19i3GZz73dBxux4xH7TM_KAz6WC4uAhfjCADYDq0yU6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Nikhil Bhoski
Yes , that's correct my descriptor  is  extending BuildStepDescriptor<Builder>  is that the reason why i am not getting descriptor.getMatrix() is not returning any values in jelly ? 

On Wednesday, 10 October 2018 19:55:31 UTC+5:30, Jesse Glick wrote:
On Wed, Oct 10, 2018 at 8:57 AM Nikhil Bhoski <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RHgqU8YYAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">nikhil...@...> wrote:
> i have plugin with proper UI elements which will be invoked through build step for all project types including freestyle/Matrix etc . i have intention of supporting it to pipeline as well but its in future . currently my intention is not to support pipeline

Are you overriding

<a href="https://javadoc.jenkins.io/hudson/tasks/BuildStepDescriptor.html#isApplicable-java.lang.Class-" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjavadoc.jenkins.io%2Fhudson%2Ftasks%2FBuildStepDescriptor.html%23isApplicable-java.lang.Class-\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFGYgCqlJHfB0AebQ4BfVQYZ_o6Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjavadoc.jenkins.io%2Fhudson%2Ftasks%2FBuildStepDescriptor.html%23isApplicable-java.lang.Class-\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFGYgCqlJHfB0AebQ4BfVQYZ_o6Q&#39;;return true;">https://javadoc.jenkins.io/hudson/tasks/BuildStepDescriptor.html#isApplicable-java.lang.Class-

? (This is not used by Pipeline, but you can effectively decline to
support Pipeline merely by not implementing `SimpleBuildStep`.)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c3dc9400-da34-41e4-a4fa-60a12093cccc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

Ulli Hafner
If there is an empty String for a boolean then your method has not been invoked. Did you try to set a break point and see if the method is invoked? It is still unclear which jelly file you are modifying?

Am 11.10.2018 um 06:38 schrieb Nikhil Bhoski <[hidden email]>:

Yes , that's correct my descriptor  is  extending BuildStepDescriptor<Builder>  is that the reason why i am not getting descriptor.getMatrix() is not returning any values in jelly ? 

On Wednesday, 10 October 2018 19:55:31 UTC+5:30, Jesse Glick wrote:
On Wed, Oct 10, 2018 at 8:57 AM Nikhil Bhoski <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="RHgqU8YYAwAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;" class="">nikhil...@...> wrote:
> i have plugin with proper UI elements which will be invoked through build step for all project types including freestyle/Matrix etc . i have intention of supporting it to pipeline as well but its in future . currently my intention is not to support pipeline

Are you overriding

<a href="https://javadoc.jenkins.io/hudson/tasks/BuildStepDescriptor.html#isApplicable-java.lang.Class-" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fjavadoc.jenkins.io%2Fhudson%2Ftasks%2FBuildStepDescriptor.html%23isApplicable-java.lang.Class-\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFGYgCqlJHfB0AebQ4BfVQYZ_o6Q';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fjavadoc.jenkins.io%2Fhudson%2Ftasks%2FBuildStepDescriptor.html%23isApplicable-java.lang.Class-\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGFGYgCqlJHfB0AebQ4BfVQYZ_o6Q';return true;" class="">https://javadoc.jenkins.io/hudson/tasks/BuildStepDescriptor.html#isApplicable-java.lang.Class-

? (This is not used by Pipeline, but you can effectively decline to
support Pipeline merely by not implementing `SimpleBuildStep`.)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c3dc9400-da34-41e4-a4fa-60a12093cccc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/6CD8B2C8-7F47-4E41-9420-9B8C694F2A79%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc (540 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Detect Matrix Project

stephenconnolly
In reply to this post by Nikhil Bhoski
In the config pages, there will not be a ‘build’ context variable.

What you want is to either check ‘it.descriptor’ as being the matrix project descriptor or check ‘it’ as being the matrix project class.

But don’t even go there, in your descriptor override ‘isApplicable’ to return false for matrix project (compare by classname) and you won’t even need a warning because it will never appear in the list of options in the first place. 

HTH

On Thu 11 Oct 2018 at 05:40, Nikhil Bhoski <[hidden email]> wrote:
Yes , that's correct my descriptor  is  extending BuildStepDescriptor<Builder>  is that the reason why i am not getting descriptor.getMatrix() is not returning any values in jelly ? 

On Wednesday, 10 October 2018 19:55:31 UTC+5:30, Jesse Glick wrote:
On Wed, Oct 10, 2018 at 8:57 AM Nikhil Bhoski <[hidden email]> wrote:
> i have plugin with proper UI elements which will be invoked through build step for all project types including freestyle/Matrix etc . i have intention of supporting it to pipeline as well but its in future . currently my intention is not to support pipeline

Are you overriding

https://javadoc.jenkins.io/hudson/tasks/BuildStepDescriptor.html#isApplicable-java.lang.Class-

? (This is not used by Pipeline, but you can effectively decline to
support Pipeline merely by not implementing `SimpleBuildStep`.)

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c3dc9400-da34-41e4-a4fa-60a12093cccc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMx%2BHRavtQL0CEEvpQNk42%2BUTYC7XssuJZY-Ek%2Bm5rf-4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
12