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"
|
is there since the script can not be recognized as two lines without it. – Juncaceous