(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


- R. Tyler Croy

------------------------------------------------------
     Code: <https://github.com/rtyler>
  Chatter: <https://twitter.com/agentdero>
     xmpp: rty...@jabber.org

  % 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/20170202112955.GJ26439%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Digital signature

Reply via email to