Closed
Description
Task name
CmdLine@2, Bash@3, AzureCLI@1, AzureCLI@2
Task version
No response
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 20.04
Question
We have multiple inline scripts in our pipelines. They all have this format (depends on the task):
- task: CmdLine@2, Bash@3, AzureCLI@1, AzureCLI@2
displayName: 'My Script'
inputs:
targetType: 'inline'
script: |
#!/bin/bash
echo "Here starts my awesome code"
When I download a full YAML of the pipeline, I noticed that some task are rendered like this:
script: |
#!/bin/bash
But a lot of other tasks are rendered with a > sign (while we have a pipe | in the code):
script: >
#!/bin/bash
This makes the pipelines rendered very big with a lot of enters between the lines of code. How and why does this happen? When I use a | symbol, shouldn't it be rendered with a | as well, instead of a >?