Reportgenerator: Q: Where does $(Parameters.TestProjects) get set in your build pipeline?

Created on 11 Jul 2019  路  1Comment  路  Source: danielpalme/ReportGenerator

I'm trying to borrow from your working code in your azure-pipelines.yml but when I used this:

# Run tests and create coverage report
- task: DotNetCoreCLI@2
  displayName: Test
  inputs:
    command: test
    projects: '$(Parameters.TestProjects)'
    projects: '**/*[Tt]ests/*.csproj'

I got no test projects matching the pattern.

When I use this, it finds my test project(s):

# Run tests and create coverage report
- task: DotNetCoreCLI@2
  displayName: Test
  inputs:
    command: test
    projects: '**/*[Tt]ests/*.csproj'

Is $(Parameters.TestProjects) something you're setting outside of the pipeline file, I assume, perhaps as a build agent environment variable? Thanks

question

Most helpful comment

The parameter is configured in the "Pipeline variables":
Settings

I don't know why I did that...

I will change that and move it to the YAML file, since this is basically a static value.

>All comments

The parameter is configured in the "Pipeline variables":
Settings

I don't know why I did that...

I will change that and move it to the YAML file, since this is basically a static value.

Was this page helpful?
0 / 5 - 0 ratings