...
@@continua[endGroup name='Copying Files...']
setBuildVariable (or setVariable)- Sets a Continua CI configuration variable. Note that the variable name must be a Continua CI configuration variable. Optionally set the skipIfNotDefined attribute to 'true' to prevent the build failing if the variable has not been defined for the configuration.
Parameters:
- name: The variable name. This is required.
- value: The new value to set the variable to . This is required.
- appendOrIncrement: When true, append the new value to variable or type text or increment the value of a numeric variable type by the new value. Defaults to false which replaces the current value with the new value.
- regExPattern: A regular expression pattern to match against the existing variable value.
- regExIgnoreCase:When true, ignore case when matching regular expression. Defaults to false.
- regExFirstMatchOnly:When true, replace first regular expression match only. Defaults to false.
- replacement:The regular expression replacement text. This may contain back references to captured groups in the regular expression pattern, see Substitutions in Regular Expressions.
- skipIfNotDefined: When true, prevents the build failing if the variable has not been defined for the configuration. Defaults to false.
- expand: When true, expands any expressions in the value or replacement.
Examples:
@@continua[setVariablesetBuildVariable name='allowupload' value='true']
@@continua[setVariablesetBuildVariable name='possiblyUnDefinedVariable' value='Hello world!' skipIfNotDefined='true']
...