詹金斯和github上 [英] Jenkins and github

查看:329
本文介绍了詹金斯和github上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个詹金斯服务器GitHub的插件触发每次做了更改,以回购的时间。 我有私钥并加载到GitHub库的公共密钥。 该作业被配置为: 库URL git@github.com:XXX / repo.git

I have a jenkins server with the github plugin to trigger every time a change is made to the repo. I have the private key and the public key loaded into the github repo. The job is configured as: Repository URL git@github.com:xxx/repo.git

我没有在作业的顶部输入URL。 其中一个我有詹金斯执行的任务是: CD的/ var / www / html等/&安培;&安培;混帐拉出身主 但每当我做出改变,以回购它不被触发,我不知道为什么。

I didn't enter the URL in the top part of the job. One of the tasks I have Jenkins do is: cd /var/www/html/ && git pull origin master But whenever I make a change to the repo it is not being triggered and I don't know why.

当我手动运行构建,我得到: [Unit_Test] $ / bin / sh的-xe /tmp/hudson1951363618156731736.sh + CD的/ var / www / html等/ +的git拉出身主 错误:存储库没有找到。 致命的:无法从远程仓库读

When I run the build manually I get: [Unit_Test] $ /bin/sh -xe /tmp/hudson1951363618156731736.sh + cd /var/www/html/ + git pull origin master ERROR: Repository not found. fatal: Could not read from remote repository.

请确保您有正确的访问权限 和库中存在。 构建步骤执行shell标记建设成为失败 电子邮件被触发:失败 - 任何 发送电​​子邮件触发:失败 - 任何 发送电​​子邮件至:xx@xx.com 完成:失败

Please make sure you have the correct access rights and the repository exists. Build step 'Execute shell' marked build as failure Email was triggered for: Failure - Any Sending email for trigger: Failure - Any Sending email to: xx@xx.com Finished: FAILURE

推荐答案

不得不添加轮询* * * * *才能正常工作。

Had to add polling with * * * * * to get it to work.

这篇关于詹金斯和github上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆