Skip to content

Commit

Permalink
jenkins: allow relative POLLY_ROOT paths
Browse files Browse the repository at this point in the history
  • Loading branch information
riegl-gc committed Apr 29, 2019
1 parent 94c0cce commit ee094df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jenkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def run():
os.makedirs(testing_dir, exist_ok=True)

if os.name == 'nt':
# path too long workaround
hunter_junctions = os.getenv('HUNTER_JUNCTIONS')
if hunter_junctions:
temp_dir = tempfile.mkdtemp(dir=hunter_junctions)
Expand Down Expand Up @@ -143,7 +144,7 @@ def run():
else:
which = 'which'

polly_root = os.getenv('POLLY_ROOT')
polly_root = os.path.abspath(os.getenv('POLLY_ROOT'))
if polly_root:
print('Using POLLY_ROOT: {}'.format(polly_root))
build_script = os.path.join(polly_root, 'bin', 'build.py')
Expand Down

0 comments on commit ee094df

Please sign in to comment.