Setting variable values on pipeline run

August 27, 2020

Setting variable values on pipeline run

Environment variables are pairs of keys with dynamically named values. You can use them in Buddy's pipelines in a variety of ways, for example:

  1. To store sensitive data required in the delivery process which cannot be stored in the repository for security reasons.
  2. To pass values from one pipeline action to another with settable variables.
  3. To pass values that vary from execution to execution, such as the version number.

Two years ago we delivered the Pass params action which stops the pipeline in the mid-run and asks for the values of specified variables. Possible use cases include asking about the password to the server, or deciding whether the pipeline should run all subsequent actions.

The action was often added at the beginning of a pipeline and it asked about the parameters required in the process of application delivery. A problem that used to arise, however, was that the question was asked after the execution started. So, in case the execution got enqueued, the parameters could only be entered when other executions have finished, which limited the feature's functionality.

Today we deliver a solution that fully roots out the problem. Now you can change the values of your variables at the moment of the pipeline launch:

To facilitate debugging who and when set the given values, you can view what values were set for ENV VARs in the Prepare Environment step on the Executions tab (except for those that are encrypted):

Buddy is 100% customer driven. If there’s a feature or integration you miss, let us know in the comments below or directly at support@buddy.works.

Share:

Alexander Kus

Alexander Kus

Customer Success Manager

A story-teller and conversation-lover, Alexander decided to invest his skills to help his friends at Buddy transform the cold language of patch notes into exciting narratives. Also: an avid gamer, hip-hop DJ, Liverpool FC fan, absentminded husband, and the father of two.