From: William Zhang Date: Wed, 30 May 2012 09:58:19 +0000 (+0800) Subject: fix for include jobs X-Git-Tag: v0.2.23~292^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a8b7a1721a6975782399cb399f2c3d3076f21bb;p=tools%2Fpython-jenkinsapi.git fix for include jobs --- diff --git a/jenkinsapi/view.py b/jenkinsapi/view.py index eb62ced..86b7632 100644 --- a/jenkinsapi/view.py +++ b/jenkinsapi/view.py @@ -77,10 +77,12 @@ class View(JenkinsBase): "Submit":"OK", } data["name"] = self.name + for job in self.get_job_dict().keys(): + data[job]='on' data[str_job_name] = "on" data['json'] = data.copy() self.post_data('%sconfigSubmit' % self.baseurl, urllib.urlencode(data)) - return "Job %s is add in View %s " % (str_job_name, self.name) + return "Job %s is add in View %s successful" % (str_job_name, self.baseurl) def id(self): """