On Thursday, February 2, 2017 at 2:13:36 PM UTC-8, Daniel Beck wrote: > > > > On 02.02.2017, at 17:27, David Karr <davidmic...@gmail.com <javascript:>> > wrote: > > > > Wow, and the documentation page doesn't even MENTION this fact? I'm > reading it now, and there's that underscore, completely without any > statement like YES, THIS REALLY NEEDS TO BE HERE. Seriously? > > Could you clarify what you're referring to? Tor Christian quoted the > documentation which states… > > > For Shared Libraries which only define Global Variables (vars/), or a > Jenkinsfile which only needs a Global Variable, the annotation pattern > @Library('my-shared-library') _ may be useful for keeping code concise. In > essence, instead of annotating an unnecessary import statement, the symbol > _ is annotated. > > > I perhaps phrased that stronger than it should have. However, the example that comes before this text uses the underscore character without mentioning it. It's only this note that comes a few lines later on when this is mentioned. When I first wrote that reply (I did try to delete it), I saw the example without any explanation, and didn't notice the explanation until later.
-- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/318779d6-87fc-4edb-9f9b-1ed45a37bb8e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.