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 <nikhil...@gmail.com 
> <javascript:>>:
>
> 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: <javascript:>jenkinsci-dev+ <javascript:>
>> unsubscr...@googlegroups.com <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?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 <javascript:>.
> To view this discussion on the web visit 
> https://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, 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 jenkinsci-dev+unsubscr...@googlegroups.com.
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 via email to