Added get_description function for jobs
authorAnton Balashov <sicness@darklogic.ru>
Fri, 24 May 2013 14:29:33 +0000 (18:29 +0400)
committerAnton Balashov <sicness@darklogic.ru>
Fri, 24 May 2013 14:29:33 +0000 (18:29 +0400)
Obvious function for getting description of job wasn't exist.

jenkinsapi/job.py

index 103a2bc..0c9c07a 100644 (file)
@@ -50,6 +50,9 @@ class Job(JenkinsBase):
     def __str__(self):
         return self._data["name"]
 
+    def get_description(self):
+        return self._data["description"]
+
     def get_jenkins_obj(self):
         return self.jenkins