On Thursday, February 2, 2017 at 3:30:05 AM UTC-8, R Tyler Croy wrote:
>
> (replies inline) 
>
> On Thu, 02 Feb 2017, Tor Christian Solev?gseide wrote: 
>
> > I was finally able to solve this myself. The problem was how I 
> referenced 
> > the shared library. Apparently, I need to add the underscore character 
> to 
> > the end if my @Library annotation like this: 
> > @Library('customized-portal-lib') _ 
> > 
> > Also, I must make sure to not import my global *acme *variable. 
> > 
> > This is documented 
> > in https://jenkins.io/doc/book/pipeline/shared-libraries/ for those who 
> > take their time to fine read it (which I didn't at first): 
>
>
> FWIW, the underscore character is kind of a cute little hack. @Library is 
> an 
> annotation so it must annotate *something*, annotating the underscore is 
> kind 
> of like annotating a throwaway unused character. Technically you're able 
> to 
> annotate other statements, as the section in the handbook describes 
>

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?
 

>
>
> - R. Tyler Croy 
>
> ------------------------------------------------------ 
>      Code: <https://github.com/rtyler> 
>   Chatter: <https://twitter.com/agentdero> 
>      xmpp: rty...@jabber.org <javascript:> 
>
>   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F 
> ------------------------------------------------------ 
>

-- 
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/f0014c4e-2d77-4372-bf65-817b08b02b7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to