Created
July 18, 2012 17:25
Revisions
-
alq666 revised this gist
Jul 18, 2012 . 1 changed file with 20 additions and 20 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,20 +1,20 @@ diff --git a/checks/build.py b/checks/build.py index 8563722..dbb75f8 100644 --- a/checks/build.py +++ b/checks/build.py @@ -38,6 +38,7 @@ class Hudson(object): except ValueError: raise Continue("Skipping non-timestamp dir: %s" % (dir_name)) else: + self.logger.debug("JENKINS path %s / ts %s / watermark %s" % (dir_name, timestamp, self.high_watermarks[job_name])) # Check if it's a build we've seen already if timestamp <= self.high_watermarks[job_name]: raise Continue("Skipping old build: %s at %s" % (job_name, timestamp)) @@ -94,6 +95,7 @@ class Hudson(object): def check(self, logger, agentConfig): + self.logger = logger if self.high_watermarks is None: # On the first run of check(), prime the high_watermarks dict # so that we only send events that occured after the agent -
alq666 created this gist
Jul 18, 2012 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ diff --git a/checks/build.py b/checks/build.py index 8563722..dbb75f8 100644 --- a/checks/build.py +++ b/checks/build.py @@ -38,6 +38,7 @@ class Hudson(object): except ValueError: raise Continue("Skipping non-timestamp dir: %s" % (dir_name)) else: + self.logger.debug("JENKINS path %s / ts %s / watermark %s" % (dir_name, timestamp, self.high_watermarks[job_name])) # Check if it's a build we've seen already if timestamp <= self.high_watermarks[job_name]: raise Continue("Skipping old build: %s at %s" % (job_name, timestamp)) @@ -94,6 +95,7 @@ class Hudson(object): def check(self, logger, agentConfig): + self.logger = logger if self.high_watermarks is None: # On the first run of check(), prime the high_watermarks dict # so that we only send events that occured after the agent