Skip to content

Commit

Permalink
Merge pull request #37 from nathan-weinberg/version-check-fix
Browse files Browse the repository at this point in the history
Changed version checking to be inclusive rather than exclusive
  • Loading branch information
nathan-weinberg authored Feb 27, 2020
2 parents 23e84a6 + 0870eba commit 0903de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ def get_jenkins_jobs(server, job_search_fields):
# fetch all jobs from server
all_jobs = server.get_jobs()

# parse out all jobs that do not contain any search field and/or are OSP11, OSP12, or OSP14 jobs
# parse out all jobs that do not contain any search field and/or are not OSP10, OSP13, OSP15 or OSP16 jobs
relevant_jobs = []
for job in all_jobs:
if ('11' in job['name']) or ('12' in job['name']) or ('14' in job['name']):
if ('10' not in job['name']) and ('13' not in job['name']) and ('15' not in job['name']) and ('16' not in job['name']):
continue
else:
for field in fields:
Expand Down

0 comments on commit 0903de3

Please sign in to comment.