Skip to content

Commit c8cd0cc

Browse files
alokgoswami-agShilpa-Gokul
authored andcommitted
changed name of job_platform flag
Signed-off-by: alokgoswami-ag <[email protected]>
1 parent e0525ec commit c8cd0cc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CI_JobHistory.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def get_testcase_failure(spylinks, zone, tc_name):
145145
print("--------------------------------------------------------------------------------------------------")
146146
print("\n")
147147

148-
def display_ci_links(config_data,job_platform):
148+
def display_ci_links(config_data,filter):
149149

150150
'''
151151
Gets selected CI input.
@@ -165,11 +165,11 @@ def display_ci_links(config_data,job_platform):
165165

166166
if JENKINS == "False":
167167
for ci_name in config_data.keys():
168-
if job_platform[0]=='All':
168+
if filter[0]=='All':
169169
j=j+1
170170
ci_name_list.append(ci_name)
171171
print(j,"",ci_name)
172-
elif any(w in ci_name for w in job_platform):
172+
elif any(w in ci_name for w in filter):
173173
j=j+1
174174
ci_name_list.append(ci_name)
175175
print(j,"",ci_name)
@@ -248,9 +248,9 @@ def main():
248248
parser = argparse.ArgumentParser(description='Get the job history')
249249
parser.add_argument('--zone', help='specify the lease/zone', type= lambda arg:arg.split(','))
250250
parser.add_argument('--job_type', default='p', choices=['p','z','pa'], help= 'Specify the CI job type (Power(p) or s390x(z) or Power Auxillary(pa)), default is p')
251-
parser.add_argument('--job_platform',default='All',type= lambda arg:arg.split(','), help='Specify the job_platform to fetch jobs, supported values are heavy build / libvirt / powervs / upgrade')
251+
parser.add_argument('--filter',default='All',type= lambda arg:arg.split(','), help='Specify the filter string to fetch jobs (Example heavy build / libvirt / powervs / upgrade / 4.14 / 4.15 / 4.16 / 4.17/ 4.18 )')
252252
args = parser.parse_args()
253-
job_platform=args.job_platform
253+
filter=args.filter
254254

255255
if args.job_type == 'p':
256256
config_file = 'p_periodic.json'
@@ -262,7 +262,7 @@ def main():
262262
monitor.PROW_URL = monitor.set_prow_url(args.job_type)
263263
config_data = monitor.load_config(config_file)
264264

265-
ci_list = display_ci_links(config_data,job_platform)
265+
ci_list = display_ci_links(config_data,filter)
266266
if isinstance(ci_list,dict):
267267
start_date,end_date = get_date_input()
268268
if start_date != None and end_date != None:

0 commit comments

Comments
 (0)