From 3a8e84d55a80de177ac8caca6e3765cb81a19107 Mon Sep 17 00:00:00 2001 From: Hugh Brown Date: Thu, 10 Oct 2013 19:08:46 -0400 Subject: [PATCH] Use good variable name --- jenkinsapi/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsapi/api.py b/jenkinsapi/api.py index ee80b98..53efb77 100644 --- a/jenkinsapi/api.py +++ b/jenkinsapi/api.py @@ -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() -- 2.34.1