如何让私人执行者与我们的scm沟通

时间:2013-07-25 22:46:20

标签: cloudbees

我们正在将jenkins-cli用于这样的私人执行者:

我们的私人构建机器上的命令(linux box):

java -jar jenkins-cli.jar -s [cloudbees_url]-i /var/build/.ssh/id_rsa on-premise-executor -fsroot /var/build -labels myLabel -executors 1

但是当我在这台机器上开始工作时,我在构建中得到了一个权限被拒绝的错误:

conq: repository access denied. deployment key is not associated with the requested repository.
fatal: Could not read from remote repository.

你知道如何添加构建机器与我们的SCM交谈所需的密钥(我们正在使用BitBucket)

1 个答案:

答案 0 :(得分:1)

首先尝试运行与Jenkins作业相同的命令,作为启动从属服务器的用户。

相关问题