[JIRA] (JENKINS-49963) Symbol lookup returns wrong result
Title: Message Title Daniel Spilker commented on JENKINS-49963 Re: Symbol lookup returns wrong result I think the problem is that MultiJobBuildSelector reuses a descriptor class rather than defining it's own. See https://github.com/jenkinsci/tikal-multijob-plugin/blob/jenkins-multijob-plugin-1.29/src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuildSelector.java#L75-L79. SimpleBuildSelectorDescriptor is the base class for several descriptors in copyartifact. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49963) Symbol lookup returns wrong result
Title: Message Title Daniel Spilker assigned an issue to Jesse Glick Jenkins / JENKINS-49963 Symbol lookup returns wrong result Change By: Daniel Spilker Assignee: Kohsuke Kawaguchi Jesse Glick Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49963) Symbol lookup returns wrong result
Title: Message Title Daniel Spilker created an issue Jenkins / JENKINS-49963 Symbol lookup returns wrong result Issue Type: Bug Assignee: Kohsuke Kawaguchi Components: multijob-plugin, structs-plugin Created: 2018-03-06 21:25 Environment: core 2.107 structs 1.14 multijob 1.29 copyartifact 1.39 Priority: Major Reporter: Daniel Spilker Symbol lookup returns an descriptor for an rather unrelated class which not annotated with the given symbol name. When running the following code in Script Console, the same objects is printed each time. import org.jenkinsci.plugins.structs.SymbolLookup import hudson.plugins.copyartifact.StatusBuildSelector import com.tikal.jenkins.plugins.multijob.MultiJobBuildSelector def d1 = Jenkins.instance.getDescriptor(StatusBuildSelector) println SymbolLookup.get().find(d1.class, 'lastSuccessful') def d2 = Jenkins.instance.getDescriptor(MultiJobBuildSelector) println SymbolLookup.get().find(d2.class, 'lastSuccessful')