Class Variable

    • Constructor Detail

      • 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 Detail

      • 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:
        Encryption in Bamboo Specs
      • 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