Created
July 18, 2012 17:25
-
-
Save alq666/3137587 to your computer and use it in GitHub Desktop.
Patch for jenkins
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 characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the bug for it DataDog/dd-agent#108