简体   繁体   English

无法将存储库 Bitbucket 与 Jenkins 连接

[英]Failed to connect the repository Bitbucket with Jenkins

I want to use Jenkins tool with Bitbucket, to automate the build after each commit.我想将 Jenkins 工具与 Bitbucket 一起使用,以在每次提交后自动构建。 I created a new Job in Jenkins, but when I put the URL repository from Bitbucket(clone project from Bitbucket) an error appear as the following picture我在 Jenkins 中创建了一个新作业,但是当我从 Bitbucket(从 Bitbucket 克隆项目)放置 URL 存储库时,出现错误,如下图所示在此处输入图像描述

I want to know what's the problem and how can I solve it.我想知道问题出在哪里以及如何解决。

The error reads错误读取

Failed to connect to repository: ... returned status code 128... Repository not found无法连接到存储库:...返回状态码 128...未找到存储库

This tells us that Jenkins can't find your git repo by the URL you provided.这告诉我们 Jenkins 无法通过您提供的 URL 找到您的 git 存储库。 Looking at the URL, I don't think that's a valid Bitbucket one.看着 URL,我不认为这是一个有效的 Bitbucket 之一。 Go to your Bitbucket repo, get the URL (you can click on the Clone tab and then pick the HTTP option and then get the git repo link) and then paste that in the Jenkins URL section. Go to your Bitbucket repo, get the URL (you can click on the Clone tab and then pick the HTTP option and then get the git repo link) and then paste that in the Jenkins URL section. Then it should find your repo.然后它应该找到你的回购。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM