詹金斯没有建立github项目

时间:2013-01-11 09:40:50

标签: github jenkins ubuntu-12.04

好吧,所以,在我解释我的问题之前,我必须提到我对jenkins和github相当新,两者都有。问题是,我已经设法将jenkins Job与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/> - hudson.remoting.LocalChannel@7932e6fd
        Using strategy: Default
        Fetching changes from 1 remote Git repos

itory
    Fetching upstream changes from git@github.com:[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 "you@example.com"
    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 <jenkins@[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操作系统,如果这是与解决方案相关的一些内容..

1 个答案:

答案 0 :(得分:1)

这可能是一个类似的问题,请找到解决方案here