self.job.poll()
self.initial_builds = set(self.job.get_build_dict().keys())
- def __exit__(self, type, value, traceback):
+ def __exit__(self, type_, value, traceback):
"""
Finish watching the job - it will track which new queue items or builds have
been created as a consequence of invoking the job.
else:
return self.baseurl
- def validate_fingerprint(self, id):
- obj_fingerprint = Fingerprint(self.baseurl, id, jenkins_obj=self)
+ def validate_fingerprint(self, id_):
+ obj_fingerprint = Fingerprint(self.baseurl, id_, jenkins_obj=self)
obj_fingerprint.validate()
- log.info(msg="Jenkins says %s is valid" % id)
+ log.info(msg="Jenkins says %s is valid" % id_)
# def reload(self):
# '''Try and reload the configuration from disk'''
# self.requester.get_url("%(baseurl)s/reload" % self.__dict__)
- def get_artifact_data(self, id):
- obj_fingerprint = Fingerprint(self.baseurl, id, jenkins_obj=self)
+ def get_artifact_data(self, id_):
+ obj_fingerprint = Fingerprint(self.baseurl, id_, jenkins_obj=self)
obj_fingerprint.validate()
return obj_fingerprint.get_info()
self_str = str(self)
return "<%s.%s %s>" % (module_name, class_name, self_str)
- def id(self):
- """
- Calculate an ID for this object.
- """
- return "%s.%s" % (self.className, self.name)
+ #def id(self):
+ # """
+ # Calculate an ID for this object.
+ # """
+ # return "%s.%s" % (self.className, self.name)