projects
/
tools
/
python-jenkinsapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bde96d4
)
Fix dangerous default argument
author
Hugh Brown
<hbrown@amplify.com>
Thu, 10 Oct 2013 22:43:14 +0000
(18:43 -0400)
committer
Hugh Brown
<hbrown@amplify.com>
Thu, 10 Oct 2013 23:29:07 +0000
(19:29 -0400)
jenkinsapi/jenkins.py
patch
|
blob
|
history
diff --git
a/jenkinsapi/jenkins.py
b/jenkinsapi/jenkins.py
index
499e66f
..
0371c1b
100644
(file)
--- a/
jenkinsapi/jenkins.py
+++ b/
jenkinsapi/jenkins.py
@@
-149,14
+149,14
@@
class Jenkins(JenkinsBase):
self.poll()
return self[newjobname]
- def build_job(self, jobname, params=
{}
):
+ def build_job(self, jobname, params=
None
):
"""
Invoke a build by job name
:param jobname: name of exist job, str
:param params: the job params, dict
:return: none
"""
- self[jobname].invoke(build_params=params)
+ self[jobname].invoke(build_params=params
or {}
)
return
def delete_job(self, jobname):