配置Bitbucket和Jenkins

时间:2012-11-07 12:33:52

标签: jenkins bitbucket

我一直试图让Jenkins指向我的私人Bitbucket仓库但是当Jenkins试图访问仓库时,以下内容会记录到我的控制台:

Building in workspace /usr/local/hudson/.hudson/jobs/project/workspace
Checkout:workspace / /usr/local/hudson/.hudson/jobs/project/workspace - hudson.remoting.LocalChannel@3d50e2
Using strategy: Default
Last Built Revision: Revision cec08812152ab1764ebb9bc52fbae2a6fe7c442d (origin/master)
Checkout:workspace / /usr/local/hudson/.hudson/jobs/project/workspace - hudson.remoting.LocalChannel@3d50e2
Fetching changes from the remote Git repository
Fetching upstream changes from git@bitbucket.org:username/projectname.git
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:852)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:812)
    at hudson.FilePath.act(FilePath.java:839)
    at hudson.FilePath.act(FilePath.java:821)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:812)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1218)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:586)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475)
    at hudson.model.Run.run(Run.java:1438)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:239)

我不在乎我如何连接到Bitbucket,我只是想看到它的工作,因为这只是一个快速的试用,安全性对我来说并不重要。

我尝试让Jenkins通过HTTPS连接我的用户名和密码,但我似乎得到了同样的错误。

1 个答案:

答案 0 :(得分:0)

如果是MacOS X系统,您可能会觉得这很有用:

Configure Jenkins to connect to BitBucket