Skip to content

Commit

Permalink
Simplify syntax of Powershell tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Apr 8, 2020
1 parent cae9277 commit fbca91f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 4 additions & 8 deletions azure-pipelines/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,13 @@ steps:
testRunTitle: netcoreapp3.1-$(Agent.JobName)
workingDirectory: src

- task: PowerShell@2
inputs:
filePath: azure-pipelines/variables/_pipelines.ps1
failOnStderr: true
- powershell: azure-pipelines/variables/_pipelines.ps1
failOnStderr: true
displayName: Update pipeline variables based on build outputs
condition: succeededOrFailed()

- task: PowerShell@2
inputs:
filePath: azure-pipelines/artifacts/_pipelines.ps1
arguments: -ArtifactNameSuffix "-$(Agent.JobName)"
- powershell: azure-pipelines/artifacts/_pipelines.ps1 -ArtifactNameSuffix "-$(Agent.JobName)"
failOnStderr: true
displayName: Publish artifacts
condition: succeededOrFailed()

Expand Down
6 changes: 2 additions & 4 deletions azure-pipelines/install-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ steps:
displayName: Install procdump
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))

- task: PowerShell@2
inputs:
filePath: azure-pipelines/variables/_pipelines.ps1
failOnStderr: true
- powershell: azure-pipelines/variables/_pipelines.ps1
failOnStderr: true
displayName: Set pipeline variables based on source

0 comments on commit fbca91f

Please sign in to comment.