Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins debugging of SCM

How can you debug and investigate why SCM polling is not working jenkins? Clearly, there are easy ways to enable it , but I'm finding that it simply "stops" working sometimes, and although I can see the SCM logs which say polling hasnt happened recently, Im not sure where to start with investigating where the polling is actually occuring.

like image 539
jayunit100 Avatar asked Oct 03 '22 02:10

jayunit100


1 Answers

Your jobs will have an SCM polling log, e.g. http://jenkinshost/job/jobname//scmPollLog, which will tell you if the execution of the SCM polling is having problems such as not being able to find the SCM client executable.

The Jenkins master log may also show errors - the location of this log depends on how you've installed Jenkins, so if you can't find it add a comment here and I'll try to help you out.

You should also double check the cron expression you're using in the SCM polling section of your Jenkins job, just to make sure it's really firing on the schedule you want. You can test cron expressions with tools such as http://www.cronmaker.com/

like image 145
gareth_bowles Avatar answered Oct 13 '22 12:10

gareth_bowles