1、构建后设置里的git publisher插件
https://blog.csdn.net/workdsz/article/details/77931812
2、通过gitlab api接口来
https://docs.gitlab.com/ee/api/tags.html#list-project-repository-tags