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?