Databricks SDK for JavaScript
    Preparing search index...

    Interface JobEnvironmentVariablesSpec

    The environment variables and files associated with a job environment variable entry. Runtime environment variables override inline variables, which override values from files, on duplicate keys.

    interface JobEnvironmentVariablesSpec {
        files?: string[];
        variables?: Record<string, string>;
    }
    Index

    Properties

    Properties

    files?: string[]

    Workspace (/Workspace/...) or UC Volumes (/Volumes/...) paths to .env files. Maximum 5 files. Files are read, parsed, and merged at task execution time, not at job creation or update API call time.

    File format: each line containing a variable must be exactly KEY=VALUE. Empty and whitespace-only lines, and lines beginning with #, are ignored. Keys must match the same regex as inlined variable names (^[A-Za-z_][A-Za-z0-9_]*$); the value continues to the end of the line. No other syntax is supported — no inline comments, no quoted values, no escape sequences, no variable interpolation. Any other line that does not match the KEY=VALUE shape fails the run.

    Size limits: maximum 32,768 bytes (32 KiB) per file on disk; maximum 1,024 bytes (1 KiB) per KEY=VALUE line combined. Files or lines exceeding these limits fail the run.

    On a duplicate key, the later file wins; variables override values from any file.

    variables?: Record<string, string>

    Environment variables specified directly as key/value pairs. Maximum 20 entries.

    Each key must be 1 to 256 characters and match ^[A-Za-z_][A-Za-z0-9_]*$: it must start with an ASCII letter or underscore and contain only ASCII letters, digits, and underscores. Each value can be any Unicode string of up to 512 characters, including an empty string.