# Branches that trigger a build on commit
trigger:
  - main
  - release/*

variables:
  - name: _TeamName
    value: Roslyn
  - name: _DotNetArtifactsCategory
    value: .NETCore

stages:
- stage: build
  displayName: Build
  jobs:
- template: /eng/common/templates/jobs/jobs.yml
  parameters:
    enableRichCodeNavigation: true
    richCodeNavigationEnvironment: "production"
    richCodeNavigationLanguage: "csharp"
    jobs:
    - job: Debug_Build
      pool:
        name: NetCorePublic-Pool
        queue: BuildPool.Windows.10.Amd64.VS2019.Pre.Open
      variables:
        - name: _BuildConfig
          value: Debug
      steps:
      - checkout: self
        clean: true
      - script: eng\common\CIBuild.cmd 
                  -configuration $(_BuildConfig)
        displayName: Build and Test

# Branches that trigger a build on commit
trigger:
  - main
  - release/*

stages:
- stage: build
  displayName: Build
  jobs:
- template: /eng/common/templates/jobs/jobs.yml
  parameters:
    enableRichCodeNavigation: true
    richCodeNavigationEnvironment: "production"
    richCodeNavigationLanguage: "csharp"
    jobs:
    - job: Debug_Build
      pool:
        name: NetCorePublic-Pool
        queue: BuildPool.Windows.10.Amd64.VS2019.Pre.Open
      variables:
        - name: _BuildConfig
          value: Debug
      steps:
      - checkout: self
        clean: true
      - script: eng\common\CIBuild.cmd 
                  -configuration $(_BuildConfig)
        displayName: Build and Index

Remove unused vars, rename displayName for clarity
Remove unused vars, rename displayName for clarity
