Cannot push to origin because of a tag that doesn't seem to exist

I have a Jenkins pipeline script. In it, I am calling Maven's release plugin like this:

mvn release:prepare

This under the hood does a git push and I am getting this error:

Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-tag command failed.
[ERROR] Command output:
[ERROR] fatal: tag 'my-project-1.3' already exists

However, when I list the Git's local tags:

git tag -l

and tags from origin :

git ls-remote --tags

nothing is shown.

So how come I can't see this tag when listing the Git tags but the push fails because of it?

链接地址: http://www.djcxy.com/p/49298.html

上一篇: 删除所有的git标签期望一个自定义的git标签列表?

下一篇: 由于标签似乎不存在,因此无法推送到原产地