Class Variable


public class Variable extends EntityPropertiesBuilder<VariableProperties>
Represents a Bamboo variable.
  • Constructor Details

    • Variable

      public Variable(@NotNull @NotNull String name, @NotNull @NotNull String value)
      Specifies a variable with given name and value.
      Parameters:
      name - name of the variable
      value - value of the variable
  • Method Details

    • name

      public Variable name(@NotNull @NotNull String name)
      Sets variable name.

      Variables with names containing words like 'password', 'secret', 'passphrase' are considered 'secret' and are encrypted when stored by Bamboo.

    • value

      public Variable value(@NotNull @NotNull String value)
      Sets variable value.

      In case of 'secret' variables, both encrypted and unencrypted forms are valid.

      See Also:
    • createOnly

      public Variable createOnly()
      Indicates that variable is automatically updated by build or deployment process. In such a case, the variable is created and it's value set only if it doesn't already exist.
      Since:
      6.10
    • build

      protected VariableProperties build()
      Specified by:
      build in class EntityPropertiesBuilder<VariableProperties>