Azure Devops Yaml syntax issues

Madhu Rao 140 Reputation points
2024-10-17T02:17:16.56+00:00

Hi All,

 

I am new to Yaml, and I am getting a syntax error with the Yaml file below running from Azure Devops

 

The error says "/azure-pipelines.yml (Line: 7, Col: 1): While parsing a block mapping, did not find expected key."

 Yaml File below.

trigger:
- week1

pool: Azure Pipelines


- task: AzureCLI@2
  displayName: 'Running Pipeline Script'
  inputs:
    azureSubscription: 'MraoppingTest'
    scriptType: 'bash'
    scriptLocation: 'scriptPath'
    scriptPath: 'pipeline_script.sh'

Thanks in Advance.

Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. SadiqhAhmed-MSFT 49,326 Reputation points Microsoft Employee Moderator
    2024-10-17T05:49:28.4366667+00:00

    @Madhu Rao Greetings!

    Azure DevOps is currently not supported in the Q&A forums, the supported products are listed over here - https://docs.microsoft.com/en-us/answers/products (more to be added later on).

    The product group for Azure DevOps / TFS actively monitors questions over at

    https://developercommunity.visualstudio.com/report?space=21&entry=problem

    https://developercommunity.visualstudio.com/report?space=22&entry=problem

    Hope this helps!


    If the response helped, do "Accept Answer" and up-vote it

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.