>
> if i just return null , will it work ?

No. A descriptor instance should be returned. Old implementation is: 

@Override
    public XX getDescriptor() {
        final Jenkins jenkins = Jenkins.getInstance();
                  if (jenkins == null) {
                     throw new IllegalStateException("Jenkins is not ready 
or has been already shut down"); 
                 }
        return (XXX) jenkins.getDescriptorOrDie(getClass());
    }

 


суббота, 15 августа 2015 г., 21:03:42 UTC+3 пользователь Irfan Sayed 
написал:
>
> Hi,
>
> I am developing one custom plugin which triggers the build based on some 
> condition.
> i just looked at the code which you have written as a reference and got 
> some doubts. 
> just wanted to have your suggestion on that 
>
> in the FilesFoundTriggerConfig class, i have found this :
>
> @Override public Descriptor<FilesFoundTriggerConfig> getDescriptor() { 
> return getClassDescriptor(); } 
>  when i used the getClassDescriptor , i am not able to resolve the same 
> in eclipse
> i am developing this plugin against Jenkins version 1.580.1
> i have already imported all the Jenkins packages but still not able to 
> resolve 
> further, if i just return null , will it work ? is there any specific 
> reason to return getClassDescriptor
> can you please help me in some pointers ?
>
> Regards,
> Irfan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/15a6beb7-97f3-4183-9a2d-ec0900f17186%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to