Commit 14766b16 authored by José Henrique's avatar José Henrique
Browse files

Always use absolute path on certain dirs

parent e8d71add
......@@ -16,6 +16,7 @@ build_env_vars = {}
for k in ["device", "version", "production", "eng_build",
"wip_branch", "repopick",
"CI_RUNNER_DESCRIPTION", "CI_JOB_URL", "CI_PIPELINE_ID",
"CI_PROJECT_DIR",
"build_repo_url", "build_repo_branch"]:
if os.getenv(k):
build_env_vars[k] = os.getenv(k)
......@@ -81,7 +82,9 @@ if not os.path.exists(build_env_vars["ccache_dir"]):
os.makedirs(build_env_vars["ccache_dir"])
build_env_vars["runner_name"] = build_env_vars["CI_RUNNER_DESCRIPTION"]
build_env_vars["post_build_dir"] = (
"post_build_" + build_env_vars["device"] + "_" + build_env_vars["version"])
build_env_vars["private_dir"] = (
"private_dir_" + build_env_vars["device"] + "_" + build_env_vars["version"])
build_env_vars["post_build_dir"] = os.path.abspath(
"post_build_" + build_env_vars["device"] + "_" + build_env_vars["version"]
)
build_env_vars["private_dir"] = os.path.abspath(
"private_dir_" + build_env_vars["device"] + "_" + build_env_vars["version"]
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment