Just to close the loop. Found it.
I was using all().get("class") in my code... and for some reason, the Jira
plugin was activating it and I was getting duplicates only on the
"definition" block of the job page. Switched to
ExtensionList.lookupSinglton() and the problem went away.
On Monday, May 9, 2022 at 2:18:44 PM UTC-4 Michael Carter wrote:
> 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/023683cb-75de-414d-9519-b90bb5c895c2n%40googlegroups.com.