'How do I get name of tags of a jenkins dsl-lib from the pipeline

I have a project where I need to verify whether I am using a dsl library version greater than the recommended one(which has been set as a tag in dsl library repo). How do I get the tag information from my pipeline without doing a checkout of dsl-lib code?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source