Skip to content
Snippets Groups Projects
Commit ab2c7f85 authored by Damian Alvarez's avatar Damian Alvarez
Browse files

To make it work in the CI

parent 5d56cb22
Branches
No related tags found
No related merge requests found
......@@ -82,6 +82,7 @@ def installation_vetoer(ec):
def get_user_info():
# Query jutil to extract the contact information
if os.getenv('CI') is not None:
jutil = subprocess.Popen([os.getenv('JUMO_USRCMD_EXEC'), 'person', 'show'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = jutil.communicate()
if not stderr:
......@@ -89,6 +90,8 @@ def get_user_info():
else:
print_warning(f'Could not query jutil: {stderr}')
exit(1)
else:
return 'CI user'
def inject_site_contact(ec, site_contacts):
key = "site_contacts"
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment