2016-03-14 186 views
1

使用Jenkins GIT插件「Git Publisher」推送標籤時,出現以下錯誤,它不會提供我可以看到的任何可用信息。有沒有人遇到類似的問題?Jenkins - Git Publisher - 無法推送標籤

Pushing tag mytag to repo origin 
RefSpec is "refs/tags/mytag:refs/heads/mytag". 
Opening connection 
Counting objects 
Finding sources 
Writing objects 
ERROR: Failed to push tag mytag to origin 
hudson.plugins.git.GitException: failed to write REJECTED_OTHER_REASON for 'refs/tags/mytag:refs/heads/mytag' refspec 'mytag' to https://<ADDRESSOFSTASH>/tomtest.git 
     at org.jenkinsci.plugins.gitclient.JGitAPIImpl$9.execute(JGitAPIImpl.java:1870) 
     at hudson.plugins.git.GitPublisher.perform(GitPublisher.java:306) 
     at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) 
     at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 
     at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) 
     at hudson.model.Build$BuildExecution.post2(Build.java:185) 
     at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) 
     at hudson.model.Run.execute(Run.java:1766) 
     at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
     at hudson.model.ResourceController.execute(ResourceController.java:98) 
     at hudson.model.Executor.run(Executor.java:408) 
Build step 'Git Publisher' marked build as failure 

回答

1

我們有同樣的問題,當我們升級了以下插件:

Git plugin  : from 2.4.0 to 2.4.4 
Git client plugin: from 1.18.0 to 1.19.6 

當我們降級到以前的版本的問題得到了解決。

+0

謝謝你,提出了一個問題https://issues.jenkins-ci.org/browse/JENKINS-37120 – Akom