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 <
nikhil...@gmail.com
>> <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
>>> <
nikhil...@gmail.com>:
>>>
>>> Thanks Oliver,
>>>
>>> my issue is i am not able to import
>>> importhudson.matrix.MatrixBuild; i am not sure why ?
>>> <
http://googlegroups.com/>
>>> > <mailto:
jenkinsci-de...@googlegroups.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/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://
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
jenkinsci-de...@googlegroups.com <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>.
>> <
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
> <mailto:
jenkinsci-de...@googlegroups.com>.
> 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>.