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('Glo...@1.0.0')?
Regards,
Lukasz.