So if I run this in the script console and only find one:

import jenkins.model.*;

List<Descriptor> d = Jenkins.instance.getExtensionList(Descriptor.class);

for (descriptor in d) {
  println descriptor
}

Would that suggest that whatever I've done is only loaded during the 
"/configure" page load?   or is that groovy script above wrong?

On Monday, May 9, 2022 at 1:38:26 PM UTC-4 [email protected] wrote:

> On Mon, May 9, 2022 at 7:13 PM Michael Carter <[email protected]> 
> wrote:
>
>> debug var.....: 
>> org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition$DescriptorImpl@72d8eb26 
>> debug currDesc: 
>> org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition$DescriptorImpl@6904e8d2
>>
>  
> This means there are two different instances of the same descriptor. 
> Descriptors are expected to be instantiated once, typically during load by 
> processing the @Extension annotation. So I'd check whether you're 
> instantiating the descriptor somewhere manually, or otherwise messing with 
> descriptor/extension lists.
>

-- 
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/caa3f13e-2697-4af1-87d2-dc0761e8b137n%40googlegroups.com.

Reply via email to