Skip to content

Instantly share code, notes, and snippets.

@stepbester
Created August 23, 2022 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stepbester/cf62254bd423bf45d624d5207fa98fe2 to your computer and use it in GitHub Desktop.
Save stepbester/cf62254bd423bf45d624d5207fa98fe2 to your computer and use it in GitHub Desktop.
An example step in Azure Pipelines that passes a test run parameter to the .NET CLI from a pipeline parameter
parameters:
- name: testShipName
type: string
steps:
- task: DotNetCoreCLI@2
displayName: 'Run warp core tests'
inputs:
command: 'test'
projects: 'Starfleet.WarpCore.Test.csproj'
arguments: '-- TestRunParameters.Parameter(name="\""shipName"\"", value="\""${{ parameters.testShipName }}"\"")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment