Skip to content
Snippets Groups Projects
Commit 0458bc4e authored by Jürg Billeter's avatar Jürg Billeter
Browse files

Merge branch 'juerg/sandbox' into 'master'

sandbox/_sandboxremote.py: Use helpers to set up cwd and env

See merge request !841
parents cf00c0a1 5f4ae90b
No related branches found
No related tags found
1 merge request!841sandbox/_sandboxremote.py: Use helpers to set up cwd and env
Pipeline #31748816 passed
......@@ -177,15 +177,11 @@ class SandboxRemote(Sandbox):
if not cascache.verify_digest_pushed(self._get_project(), upload_vdir.ref):
raise SandboxError("Failed to verify that source has been pushed to the remote artifact cache.")
# Set up environment and working directory
if cwd is None:
cwd = self._get_work_directory()
if cwd is None:
cwd = '/'
if env is None:
env = self._get_environment()
# Fallback to the sandbox default settings for
# the cwd and env.
#
cwd = self._get_work_directory(cwd=cwd)
env = self._get_environment(cwd=cwd, env=env)
# We want command args as a list of strings
if isinstance(command, str):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment