Skip to content

Commit

Permalink
use domain env var
Browse files Browse the repository at this point in the history
  • Loading branch information
NoyaArie committed Nov 20, 2024
1 parent 084fbce commit ea7ab63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion macros/edr/dbt_artifacts/upload_dbt_invocation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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"]) %}
Expand Down

0 comments on commit ea7ab63

Please sign in to comment.