-
-
Notifications
You must be signed in to change notification settings - Fork 8
Transform Variable
Jesse Houwing edited this page May 7, 2016
·
3 revisions
With this task you'll be able to apply some basic operations when assigning a value to a variable.
- Input Value - The value to transform and assign to the variable.
-
Output Variable Name - Specify one variable name, for example:
MyVariable
. Do not add$(..)
, as this will not use the variable name, but its value. When you try to set the special variableBuild.BuildNumber
, the task will detect that and will call the special SetBuildNumber command.
- Search & Replace
- Trim
- Slice
- Substring
- Change case
- Pad
Note Manipulations will be execute din the displayed order. There is no way to change the order.
Optionally the value can be transformed (escaped/encoded):
- Method
- Base64
- Uri
- Uri Component
- Slashes
- Direction - Choose whether to encode or decode the value.
- Apply Transformation - Choose whether to apply the transformation before Manipulations or after. generally you'd apply the transformation Before in case you're decoding a value and after if you're encoding.