steps:
- script: |
echo "good"
echo "nice"
This doesn't work. It prints 'good' successfully, but doesn't print nice and shows echo "nice" so the final output is
good echo 'nice'
I tried to remove | after the script: but still no luck. Any idea? I am running this on ubuntu machine.
I get the desired output. This is how my pipeline looks like:
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
echo "good"
echo "nice"
Output:
Answer to the question in the comments:
This is how I pass multiple parameters to the ARM deployment task:
steps:
- task: AzureResourceManagerTemplateDeployment@3
displayName: "MyDeployment"
inputs:
deploymentScope: "Resource Group"
ConnectedServiceName: ${{ parameters.serviceConnection }}
action: "Create Or Update Resource Group"
resourceGroupName: "$(resourceGroupName)"
location: "$(location)"
templateLocation: "Linked artifact"
csmFile: "$(Pipeline.Workspace)/drop/azuredeploy.json"
overrideParameters: "
-eventGridTopicName myEventGridName
-appServicePlanName myAppServicePlan"
deploymentMode: "Incremental"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With