2013-03-27 135 views
1

有沒有人從詹金斯看到以下例外情況?Jenkins標籤名稱無效

FATAL: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Push Notifications API (Master)-3 is invalid 
hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Push Notifications API (Master)-3 is invalid 
    at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:179) 
    at hudson.plugins.git.GitAPI.tag(GitAPI.java:220) 
    at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1239) 
    at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196) 
    at hudson.FilePath.act(FilePath.java:865) 
    at hudson.FilePath.act(FilePath.java:838) 
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1196) 
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:689) 
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:594) 
    at hudson.model.Run.execute(Run.java:1567) 
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
    at hudson.model.ResourceController.execute(ResourceController.java:88) 
    at hudson.model.Executor.run(Executor.java:237) 
Caused by: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Push Notifications API (Master)-3 is invalid 
    at org.eclipse.jgit.api.TagCommand.processOptions(TagCommand.java:198) 
    at org.eclipse.jgit.api.TagCommand.call(TagCommand.java:112) 
    at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:175) 
    ... 14 more 

這是一個Scala項目,我們正在使用SBT 12.1來構建它。我的谷歌搜索只返回了我過去的舊版Jenkins的問題。我們有1.506。

我們有很多其他項目建設得很好,其中一些也是斯卡拉。

+1

我得到這個錯誤建立一個Java項目。我不確定爲什麼這會突然出現,但我可以通過進入構建配置的源代碼管理部分的高級...配置設置並選中「跳過內部標記」來解決它。希望這也能幫助你。 – 2013-04-12 23:14:33

+1

@NathanSmith大獲成功!如果您提交該答案而不是評論,我會接受它! – ShatyUT 2013-04-14 00:18:32

回答

2

我得到這個錯誤建立一個Java項目。我不知道爲什麼會突然冒出來,但我可以通過以下操作來解決它:

轉到一個的的源代碼管理部分高級...配置設置建立配置並檢查「跳過內部標籤」。

(從評論升級)