Set Variables with YAML

YAML parameters for Set Variables

NameTypeDescription
action
Required
StringThe name of the action.
type
Required
StringThe type of the action. Should be set to SET_VARIABLES.
variables
Required
Variable[]The list of existing settable variables.
key
Required
StringThe name of the variable.
defaultsStringThe value of the variable.
encryptedBooleanEncrypted values will not be visible once saved. Can be used for things like passwords.
init_pathStringPath to the file with options.
commentStringThe custom comment that will be displayed upon passing arguments.
permissionsPipelinePermissionsDefine to set permissions for the action.

YAML example for Set Variables

actions:
- action: "Set Variables"
  type: "SET_VARIABLES"
  comment: "comment"
  variables:
  - key: "var1"
    type: "VAR"
  - key: "var2"
    type: "VAR"
    defaults: "option1\noption2"
  - key: "var3"
    type: "VAR"
    init_path: "/fileWithOptions"
  - key: "var4"
    type: "VAR"

PipelinePermissions schema

NameTypeDescription
othersStringAccessLevel for the group Others. Can be one of DENIED, ALLOWED. Default setting is ALLOWED.
usersUserPermission[]The list of users who will be granted a permission other than the Others group.
groupsGroupPermission[]The group who will be granted a permission other than the Others group.
  permissions:
    others: "DENIED"
    users:
      alex@buddy.works: "DENIED"
      mike@buddy.works: "ALLOWED"
    groups:
      frontend: "DENIED"
      backend: "ALLOWED"

Last modified on July 5, 2023

Questions?

Not sure how to configure a pipeline for your process? Reach out on the live-chat or contact support

Get Started

Sign up for free and deploy your project in less than 10 minutes.