Apparently it's possible :)
If I set *Refspec* "+refs/heads/*:refs/remotes/origin/*
+refs/tags/*:refs/remotes/origin/tags/*" and *Branch Specifier* "
${library.Global.version}" I can load my library the way I wanted,
@Library('Global@version/1.0') or @Library('[email protected]')
W dniu środa, 28 czerwca 2017 21:42:30 UTC+2 użytkownik Łukasz Zachulski
napisał:
>
> Is it possible to specify branch for Pipeline Library in such a way that
> it would allow override default @Library version with either Git tag or
> branch?
>
>
> So far I have tried different wildcard combinations,
> refs/*/${library.Global.version}, but none of them works.
>
> Instead if I stop using wildcards and specify expression with only
> environment variable, refs/${library.Global.version}, it works. However
> it then forces me to specify library version with either tags or heads
> prefix,
> ex. @Library('Global@heads/version/1.0,') or @Library('Global@tags/1.0.0').
>
>
>
> Is a way to end up with shorter notation like
> @Library('Global@version/1.0') or @Library('[email protected]')?
>
> Regards,
> Lukasz.
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/d77a352a-7847-4286-ab8c-ce570af7eee2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.