Build fails when tags are pushed
Error
See https://forge.etsi.org/jenkins/job/3GPP/job/openapi-playground-any-commit/1106/console
hudson.plugins.git.GitException: Command "git rev-parse origin/refs/tags/CT87-Rel16^{commit}" returned status code 128:
stdout: origin/refs/tags/CT87-Rel16^{commit}
stderr: fatal: ambiguous argument 'origin/refs/tags/CT87-Rel16^{commit}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Documentation
- See https://issues.jenkins-ci.org/browse/JENKINS-37050?focusedCommentId=336512&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-336512
- https://github.com/jenkinsci/gitlab-plugin#build-when-tags-are-pushed
- https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#push-events