Use good variable name
authorHugh Brown <hbrown@amplify.com>
Thu, 10 Oct 2013 23:08:46 +0000 (19:08 -0400)
committerHugh Brown <hbrown@amplify.com>
Thu, 10 Oct 2013 23:32:14 +0000 (19:32 -0400)
jenkinsapi/api.py

index ee80b982f2383caaa1052f7e6ebf5efb92a8e25f..53efb77cbf2c839bbfb942783cafc01428b1a62b 100644 (file)
@@ -182,8 +182,8 @@ def search_artifact_by_regexp(jenkinsurl, jobid, artifactRegExp):
     @param jobid: The name of the job we are to search through
     @param artifactRegExp: A compiled regular expression object (not a re-string)
     '''
-    J = Jenkins(jenkinsurl)
-    j = J[jobid]
+    job = Jenkins(jenkinsurl)
+    j = job[jobid]
 
     build_ids = j.get_build_ids()