相关疑难解决方法(0)

从jenkins服务器连接到bitbucket存储库

我正在尝试使用我在jenkins中安装的git插件创建从jenkins到我的bitbucket存储库的连接.

当我进入存储库URL时,我收到如下图所示的消息通知:

"无法连接到存储库:命令"ls-remote -h git@bitbucket.org:safe2school-ondemand/s2s-android-padres.git HEAD"返回状态码128:stdout:stderr:Permission denied(publickey).致命:远程端意外挂断"

尝试通过git连接到jenkins的bitbucket repo

我在apache tomcat容器上安装了jenkins,它位于路径/ srv/apache-tomcat中

在系统中我有一个root ssh-key,我把这个键添加到bitbucket.我感谢您的支持 :)

git ssh bitbucket jenkins

12
推荐指数
1
解决办法
2万
查看次数

使用Bitbucket配置Jenkins

我似乎一直试图将Jenkins(Ubuntu的EC2 AWS实例)与Bitbucket联系起来.

每当我尝试构建我的项目时(我已经在Jenkins上安装了git插件)我得到了......

Building in workspace /var/lib/jenkins/jobs/Google adwords/workspace
Checkout:workspace / /var/lib/jenkins/jobs/Google adwords/workspace - hudson.remoting.LocalChannel@2c473996
Using strategy: Default
Cloning the remote Git repository
Cloning repository origin
ERROR: Error cloning remote repo 'origin' : Could not clone git@bitbucket.org:DAVID99WORLD/assessme.git
hudson.plugins.git.GitException: Could not clone git@bitbucket.org:DAVID99WORLD/assessme.git
    at hudson.plugins.git.GitAPI.clone(GitAPI.java:268)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1122)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064)
    at hudson.FilePath.act(FilePath.java:842)
    at hudson.FilePath.act(FilePath.java:824)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1064)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
    at hudson.model.Run.execute(Run.java:1502)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:236)
Caused by: hudson.plugins.git.GitException: Command "git clone --progress -o origin git@bitbucket.org:DAVID99WORLD/assessme.git /var/lib/jenkins/jobs/Google …
Run Code Online (Sandbox Code Playgroud)

java git bitbucket jenkins

3
推荐指数
1
解决办法
8599
查看次数

标签 统计

bitbucket ×2

git ×2

jenkins ×2

java ×1

ssh ×1