Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用cloudbees和bitbucket从git触发jenkins构建_Git_Continuous Integration_Jenkins_Bitbucket_Cloudbees - Fatal编程技术网

使用cloudbees和bitbucket从git触发jenkins构建

使用cloudbees和bitbucket从git触发jenkins构建,git,continuous-integration,jenkins,bitbucket,cloudbees,Git,Continuous Integration,Jenkins,Bitbucket,Cloudbees,我试图在提交git回购时自动触发jenkins构建。我使用的是cloudbees jenkins实例,我的回购协议位于Butbacke 我在我的bitbucket repo上配置了jenkins服务,但它似乎没有在jenkins上启动构建。为了配置它,我使用了以下方法: Endpoint: https://<my-email>:<my-api-token>@myaccount.ci.cloudbees.com Project name: <my-build-job-

我试图在提交git回购时自动触发jenkins构建。我使用的是cloudbees jenkins实例,我的回购协议位于Butbacke

我在我的bitbucket repo上配置了jenkins服务,但它似乎没有在jenkins上启动构建。为了配置它,我使用了以下方法:

Endpoint: https://<my-email>:<my-api-token>@myaccount.ci.cloudbees.com
Project name: <my-build-job-name>
Token: <my-token-name>
Endpoint:https://:@myaccount.ci.cloudbees.com
项目名称:
代币:
我已经正确地将cloudbees SSH公钥设置为bitbucket,并验证了jenkins在手动触发时是否成功构建了我的项目。但是,当我将更改推送到存储库时,它似乎不起作用

我遵循了以下教程:

有人设法解决了这个问题吗?

我写过关于在Cloudbees上集成bitbucket和jenkins的文章,但是bitbucket并不正式支持服务挂钩上的凭据,而且这似乎并不适用于所有帐户,甚至我也不知道为什么它有时会失败。Cloudbees实例从未收到设置了凭据的通知http请求

也许一个bitbucket插件会有所帮助,就像我们让github和gitlab管理提交钩子一样。

我也遵循了 但我发现我跳过了一步,就像法语一样


该步骤是检查(在Jenkins配置中)远程触发构建(例如,从脚本)复选框,并确保提供的身份验证令牌与提供给BitBucket服务的令牌相同。正如教程所说,这就是“魔法将发生”的地方。

我为碰巧登陆此页面的其他人发布了一个相关的解决方案。

我真的很惊讶bitbucket竟然不能为该功能提供无缝支持。在这种情况下,它肯定不能成为我们项目堆栈的一部分。