好的,所以,在我解釋我的問題之前,我必須提到我對jenkins和github兩者都是相當新的。問題是,我設法將jenkins Job與github項目相關聯,但當我嘗試建立在詹金斯的工作,我得到以下錯誤到我的郵箱:Jenkins沒有構建github項目
Started by user anonymous
Building in workspace <http://127.0.0.1:8080/job/work_test/ws/>
Checkout:workspace/<http://127.0.0.1:8080/job/work_test/ws/> - [email protected]
Using strategy: Default
Fetching changes from 1 remote Git repos
itory
Fetching upstream changes from [email protected]:[user]/[project]-portal.git
Seen branch in repository origin/HEAD
Seen branch in repository origin/develop
Seen branch in repository origin/development_umair
Seen branch in repository origin/logs_redesign
Seen branch in repository origin/master
Seen branch in repository origin/overviewtabs
Commencing build of Revision b65f1a84d55a048accbcf7af2f56bb357fe73b64 (origin/overviewtabs)
Checking out Revision b65f1a84d55a048accbcf7af2f56bb357fe73b64 (origin/overviewtabs)
FATAL: Could not apply tag jenkins-[project name]_test-17
hudson.plugins.git.GitException: Could not apply tag [project name] test-17
at hudson.plugins.git.GitAPI.tag(GitAPI.java:829)
at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1270)
at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1231)
at hudson.FilePath.act(FilePath.java:852)
at hudson.FilePath.act(FilePath.java:825)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1231)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1325)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587)
at hudson.model.Run.execute(Run.java:1543)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Caused by: hudson.plugins.git.GitException: Command "git tag a -f -m Jenkins Build #17 jenkins[project name]_test-17" returned status code 128:
stdout:
stderr:
Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident <[email protected][email]-KJ419AA-AB4-a6417l.(none)> not allowed
at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:897)
at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:858)
at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:868)
at hudson.plugins.git.GitAPI.tag(GitAPI.java:827)
... 13 more
需要詳細且易於新是配置的幫助類型.. =)我已經尋找解決方案,但最近我得到了「gitconfig」文件的重要性。我試圖配置它,但無法解決問題...還提到,我正在使用Ubuntu操作系統,如果這是一些什麼有關的解決方案..
可能重複[Jenkins + git:「告訴我你是誰」錯誤,爲什麼需要標記?](http://stackoverflow.com/questions/11122913/jenkins-git-tell-me-who - 你是錯誤爲什麼它需要標記) – knocte