Update jenkins.py
authors-ltf <iras146@gmail.com>
Thu, 20 Jun 2013 01:35:18 +0000 (22:35 -0300)
committers-ltf <iras146@gmail.com>
Thu, 20 Jun 2013 01:35:18 +0000 (22:35 -0300)
I found a bug in the build_job function, self[jobname].invoke(params=params) should have "build_params" instead of "params" ,i.e. self[jobname].invoke(build_params=params)

Not sure where else this function is being used through out the api library,but the issue could be in other places.

Hope that helps,
S.A.

jenkinsapi/jenkins.py

index 6c6de9d768ff9d883ec4dc3761989fcf04c96215..392bd4047b1c180238ae133db9e6a1985c9578b6 100644 (file)
@@ -154,7 +154,7 @@ class Jenkins(JenkinsBase):
         :param params: the job params, dict
         :return: none
         """
-        self[jobname].invoke(params=params)
+        self[jobname].invoke(build_params=params)
         return
 
     def delete_job(self, jobname):