Added timestamp method to build
authorRamon van Alteren <ramon@vanalteren.nl>
Fri, 10 Feb 2012 09:00:24 +0000 (10:00 +0100)
committerRamon van Alteren <ramon@vanalteren.nl>
Fri, 10 Feb 2012 09:00:24 +0000 (10:00 +0100)
mcascallares requested a method to retrieve the timestamp on a build.
Added closing issue #4

jenkinsapi/build.py

index 887ec7c437f5c8f8092668d718c92b7c15555571..844046a62bd460b666bb3ebb464e1ac553176e59 100644 (file)
@@ -110,3 +110,5 @@ class Build(JenkinsBase):
             all_actions.update( dct_action )
         return all_actions
 
+    def get_timestamp(self):
+        return self._data['timestamp']