Skip to content

gives syntax error for valid content when file name is not azure-pipelines.yml #591

@vairakkumaar-svs-hf

Description

@vairakkumaar-svs-hf

I have a file name azure-pipelines-prod.yml

and have the following content
`
trigger:

  • none

resources:
repositories:

  • repository: templates # The name used to reference this repository in the checkout step
    type: git
    name: projectname/azure-pipeline-templates
  • repository: self
    type: git
    name: self

stages:

  • template: azure-pipelines.yml@templates
    parameters:
    deploytoProdAuto: 'true'
    `

and I get error in line 1. how to make vscode to use the azure-pipelines syntax?

I tried adding in my workspace settings.json as follows and it did not work.

{ "files.associations": { "**/ci/azure-pipelines-*.yml": "azure-pipelines" } }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions