Jenkins SCM polling is not working when hosted on AWS Linux 18.04.1

懵懂的女人 提交于 2019-12-13 01:19:05

问题


EDIT:

I found out that, on UBUNTU 16.0.4 the SCM Service is working fine and I do not face the problem. However, I'm having this problem on Ubuntu 18.0.4.

Any idea how can I check the SCM service logs?


Problem:

  • Jenkins is not able to Poll for changes in the git repo. However, if manually triggered, the recent changes are fetched and then the job is built.

Jenkins Config:

  • Jenkins master machine is in AWS cloud behind a load balancer.
  • All slaves are in my local network which can connect to Jenkins Master and execute jobs as per Master's command.

Solutions tried so far:

  • I suspected some problem with the local firewall and tried connecting the node to a network which did not have any firewall. Still, this did not work.
  • I tried deleting the existing nodes and adding them freshly. Still, it did not work.
  • I tried with Bitbucket branch source plugin since all our code is on Bitbucket cloud.

What I'm expecting to solve this:

  • If anyone has faced this issue before, please let me know how to resolve this.
  • Else, I want to know is there any way that I can see the polling logs at the system level.

  • Please note: Not in the Jenkins (which I know). Please note, I do not want to see the logs at https://mydomain/jobs/SCMpollLog as they do print only after polling is triggered and then polling is a success or not. I want to know the reason behind why polling is not occurring.

Pleaes let me know if you need any additional info.


回答1:


As a workaround, I would recommend you using the git hook: it will create an event once the repository has been updated and push it to Jenkins.

https://wiki.jenkins.io/display/JENKINS/GitHub+Plugin#GitHubPlugin-GitHubhooktriggerforGITScmpolling



来源:https://stackoverflow.com/questions/53718499/jenkins-scm-polling-is-not-working-when-hosted-on-aws-linux-18-04-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!