Mercurial Plugin,Jenkins和Cloudbees

时间:2014-08-25 23:53:38

标签: jenkins mercurial cloudbees

我试图在使用mercurial在bitbucket中托管的项目上运行jenkins。我对mercurial有以下设置:

repository url:  http://bitbucket.org/myuser/myproject
credentials:  username with password    (I have my bitbucket username / password)
Revision Type:  branch
Revision:  default

当我运行构建时,我得到以下内容:

Started by user Me / Me
Building remotely on bec9ae7e (lxc-fedora17 m1.xlarge hi-speed xlarge) in workspace     /scratch/jenkins/workspace/myproject
$ hg --config ******** clone --rev default --noupdate http://bitbucket.org/myuser/myproject /scratch/jenkins/workspace/myproject
abort: http authorization required
ERROR: Failed to clone http://bitbucket.org/myuser/myproject
ERROR: Failed to clone http://bitbucket.org/myuser/myproject
Finished: FAILURE

我没有找到发送我的相应凭据的位置。另外,不确定所有这些配置操作都在做什么。

1 个答案:

答案 0 :(得分:1)

--config ********是定义身份验证的命令行选项的掩码版本。您引用的表单似乎是用于SSH私钥身份验证,这与您声称指定的凭据是用户名/密码对(这将产生多个--config选项,有些未被屏蔽)相矛盾。所以我会仔细检查你的证书。