Commit 9b955cb7 authored by José Henrique's avatar José Henrique
Browse files

Dump build variables

parent ae5a9de7
......@@ -3,13 +3,14 @@
import time
import sys
import os
import copy
from build_env import build_env_vars
from build_utils import start_notifier, start_build
from post_build import start_post_build
from post_build_env import init_post_build_env_vars
notifier_env_vars = build_env_vars
notifier_env_vars = copy.deepcopy(build_env_vars)
notifier_env_vars["TELEGRAM_TOKEN"] = os.getenv("TELEGRAM_TOKEN")
notifier_env_vars["TELEGRAM_CHAT_ID"] = os.getenv("TELEGRAM_CHAT_ID")
......
......@@ -14,7 +14,8 @@ build_env_vars = {}
for k in ["device", "version", "production", "eng_build",
"wip_branch", "generate_incremental", "repopick",
"CI_RUNNER_DESCRIPTION", "CI_JOB_URL", "CI_PIPELINE_ID"]:
"CI_RUNNER_DESCRIPTION", "CI_JOB_URL", "CI_PIPELINE_ID",
"build_repo_url", "build_repo_branch"]:
if os.getenv(k):
build_env_vars[k] = os.getenv(k)
......
......@@ -5,6 +5,7 @@ import os
import traceback
import threading
import time
import json
docker_client = docker.from_env()
......@@ -72,7 +73,8 @@ def start_build(environment_vars):
}
kill_container(container_name)
pull_image(image_name)
print("Starting container: " + container_name)
print("Starting container: " + container_name +
", with environment variables: " + json.dumps(environment_vars))
try:
stream_container_logs(container_name)
time.sleep(1)
......
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