I have a simple action that displays an icon on the left rail, that when is clicked displays an artifact. All works well when there is only one instance of it, but when I have multiple instances, by way of having multiple custom build steps in the same build I encounter the following issue:
I create each instance with a unique index that distinguishes between them. The *getDisplayName* method uses that index in the returned name, and indeed that works - each item on the left rail has a unique name. The problem is that no matter which I click, I always display the artifact of the first instance. The relevant Jelly file should get at the correct artifact by calling another instance method of the action. It is called using the *it* object, but that always refers to the first of the instances. How do I relate between the icon clicked (which knows its instance because it knows to display the right index) and the instance that the *it* object refers to ? -- 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/2626c778-aa79-4efa-a835-4575993b5d73%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
