From ea7ab63ac303dd375d216074bb3beae6efc0c2a1 Mon Sep 17 00:00:00 2001 From: noyaarie Date: Wed, 20 Nov 2024 12:59:49 +0200 Subject: [PATCH] use domain env var --- macros/edr/dbt_artifacts/upload_dbt_invocation.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macros/edr/dbt_artifacts/upload_dbt_invocation.sql b/macros/edr/dbt_artifacts/upload_dbt_invocation.sql index 61a11c18c..93ff28473 100644 --- a/macros/edr/dbt_artifacts/upload_dbt_invocation.sql +++ b/macros/edr/dbt_artifacts/upload_dbt_invocation.sql @@ -189,8 +189,9 @@ {% set account_id = elementary.get_var('account_id', ['DBT_CLOUD_ACCOUNT_ID']) %} {% set dbt_cloud_project_id = elementary.get_first_env_var(['DBT_CLOUD_PROJECT_ID']) %} {% set dbt_cloud_run_id = elementary.get_first_env_var(['DBT_CLOUD_RUN_ID']) %} + {% set dbt_cloud_domain = elementary.get_first_env_var(['DBT_CLOUD_DOMAIN']) or "cloud.getdbt.com" %} - {% set dbt_cloud_job_url = "https://cloud.getdbt.com/deploy/" ~ account_id ~ "/projects/" ~ dbt_cloud_project_id ~ "/runs/" ~ dbt_cloud_run_id %} + {% set dbt_cloud_job_url = "https://" ~ dbt_cloud_domain ~ "/deploy/" ~ account_id ~ "/projects/" ~ dbt_cloud_project_id ~ "/runs/" ~ dbt_cloud_run_id %} {% do return(dbt_cloud_job_url) %} {% elif orchestrator == 'github_actions' %} {% set server_url = elementary.get_first_env_var(["GITHUB_SERVER_URL"]) %}