mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
When running "single-shot", it needs the params right away.
This commit is contained in:
parent
db9c722e56
commit
f5e4b9f52b
@ -129,10 +129,12 @@ def echo_parseable_environment(options):
|
||||
'SALT_PR_GIT_URL={0}'.format(PR.head.repo.clone_url),
|
||||
'SALT_PR_GIT_COMMIT={0}'.format(PR.head.sha)
|
||||
])
|
||||
options.salt_url = PR.head.repo.clone_url
|
||||
options.commit = PR.head.sha
|
||||
except ValueError:
|
||||
print('# Failed to get the PR id from the environment')
|
||||
|
||||
sys.stdout.write('\n'.join(output))
|
||||
sys.stdout.write('\n\n{0}\n\n'.format('\n'.join(output)))
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user