Introducing: Default Environment Variables
Environment variables are pairs of key-and-value commonly used by developers to encrypt authentication credentials, pass values in scripts and hide sensitive data in configuration files.
Today's release expands the feature with a list of default ENV VARs that you can use. The variables are automatically populated during each execution, holding such data as the branch from which the deploy was made or the ID of the execution.
List of Populated Variables
defaultBUDDY_WORKSPACE_URL BUDDY_WORKSPACE_ID BUDDY_WORKSPACE_NAME BUDDY_WORKSPACE_DOMAIN BUDDY_PROJECT_URL BUDDY_PROJECT_NAME BUDDY_PROJECT_NAME_ID BUDDY_REPO_SLUG BUDDY_INVOKER_URL BUDDY_INVOKER_ID BUDDY_INVOKER_NAME BUDDY_INVOKER_EMAIL BUDDY_INVOKER_AVATAR_URL BUDDY_EXECUTION_URL BUDDY_EXECUTION_ID BUDDY_EXECUTION_START_DATE BUDDY_EXECUTION_MODE BUDDY_EXECUTION_CLEAR_CACHE BUDDY_EXECUTION_REFRESH BUDDY_EXECUTION_COMMENT BUDDY_EXECUTION_BRANCH BUDDY_EXECUTION_TAG BUDDY_EXECUTION_PULL_REQUEST_ID BUDDY_EXECUTION_PREVIOUS_REVISION BUDDY_EXECUTION_PREVIOUS_REVISION_MESSAGE BUDDY_EXECUTION_REVISION BUDDY_EXECUTION_REVISION_MESSAGE BUDDY_EXECUTION_REVISION_COMMITER_EMAIL BUDDY_PIPELINE_URL BUDDY_PIPELINE_ID BUDDY_PIPELINE_NAME BUDDY_PIPELINE_REF_NAME BUDDY_PIPELINE_TRIGGER_MODE BUDDY_PIPELINE_TARGET_SITE_URL BUDDY_FAILED_ACTION_LOGS BUDDY_FAILED_ACTION_NAME
Example Usage
The ENV VARs are available in all supported fields. To use a default variable, type $BUDDY
in the input, and Buddy will autosuggest the variables available. For example, you can use a default variable to automatically label zipped packages with the execution ID:
Image loading...
Jarek Dylewski
Customer Support
A journalist and an SEO specialist trying to find himself in the unforgiving world of coders. Gamer, a non-fiction literature fan and obsessive carnivore. Jarek uses his talents to convert the programming lingo into a cohesive and approachable narration.