Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add workspace url to env #11

Merged
merged 4 commits into from
Nov 23, 2015
Merged

add workspace url to env #11

merged 4 commits into from
Nov 23, 2015

Conversation

shreyderina
Copy link
Contributor

No description provided.

# environment values should be string for exec
env['TESTPLAN_ID'] = str(test_plan.id)
env['LAUNCH_ID'] = str(launch.id)
env['WORKSPACE_URL'] = 'http://{}{}/'.format(
settings.CELERY_HOST, workspace_path.replace('/opt/', '/'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to think about how to remove path hardcode "/opt/"

@@ -180,15 +179,18 @@ def execute(self, request, pk=None):
launch.save()

# env create
env = {'WORKSPACE': workspace_path, 'HOME': workspace_path}
env = {'WORKSPACE': settings.CDWS_DEPLOY_DIR + workspace_path,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os.path.join(settings.CDWS_DEPLOY_DIR, workspace_path)

rvadim pushed a commit that referenced this pull request Nov 23, 2015
Add workspace url to env
@rvadim rvadim merged commit f037d67 into master Nov 23, 2015
@rvadim rvadim deleted the workscape-url branch November 23, 2015 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants