Fabian
10/20/2025, 3:28 PMkapa.ai
10/20/2025, 3:28 PMkapa.ai
10/20/2025, 3:28 PMORCHESTRATOR - JOB_NAME - JOB_ID - JOB_URL - JOB_RUN_ID - JOB_RUN_URL You can set these as [GitLab CI/CD variables](https://docs.gitlab.com/ee/ci/variables/) in your .gitlab-ci.yml file or in your GitLab project settings. ## Using dbt vars Alternatively, you can pass job information directly in your dbt command using the --vars flag: bash dbt run --vars '{"orchestrator": "gitlab", "job_name": "my_dbt_job"}' ## Example GitLab CI Configuration Here's how you might configure this in your `.gitlab-ci.yml`: yaml dbt_job: script: - export JOB_NAME="my_dbt_job" - export ORCHESTRATOR="gitlab" - dbt run Or using dbt vars: yaml dbt_job: script: - dbt run --vars '{"orchestrator": "gitlab", "job_name": "my_dbt_job"}' The job information will be stored in the dbt_invocations table in your Elementary schema, and you can also view it through the job_run_results view. For more details, see the [Collect jobs info from orchestrator](https://docs.elementary-data.com/oss/guides/collect-job-data) guide.Fabian
10/20/2025, 3:30 PMkapa.ai
10/20/2025, 3:30 PMkapa.ai
10/20/2025, 3:30 PMyaml dbt_job: script: - export ORCHESTRATOR="gitlab" - export JOB_NAME="$CI_JOB_NAME" - export JOB_ID="$CI_PIPELINE_ID" - export JOB_RUN_ID="$CI_JOB_ID" - export JOB_URL="$CI_PIPELINE_URL" - export JOB_RUN_URL="$CI_JOB_URL" - dbt run ### Variable Explanations: - ORCHESTRATOR: Set to "gitlab" (static value) - JOB_NAME: $CI_JOB_NAME - The name of the job as defined in .gitlab-ci.yml - JOB_ID: $CI_PIPELINE_ID - The unique ID of the current pipeline - JOB_RUN_ID: $CI_JOB_ID - The unique ID of the current job - JOB_URL: $CI_PIPELINE_URL - The URL to the pipeline details page - JOB_RUN_URL: $CI_JOB_URL - The URL to the job details page These are GitLab's [predefined CI/CD variables](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) that should be available in your pipeline by default. Note: While the knowledge sources don't explicitly list GitLab CI variable mappings, this approach follows the same pattern used for other orchestrators like [Jenkins](https://slack.com/archives/C02CTC89LAX/p1693381415910399), where users map orchestrator-specific variables to Elementary's expected environment variables.