Skip to content

Commit

Permalink
Download artifacts to run Component Goverance on (#5266)
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard authored Feb 21, 2019
1 parent b421973 commit 0f376ea
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .azure-pipelines/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
inputs:
command: pack
packagesToPack: '$(ProjectFile)'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_MULTILEVEL_LOOKUP: 0

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts'
Expand All @@ -40,6 +44,13 @@ jobs:
vmImage: 'vs2017-win2016'

steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest'))
inputs:
artifactName: packages
downloadPath: $(System.DefaultWorkingDirectory)

- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
# ComponentGovernance is currently unable to run on pull requests of public projects. Running on
Expand Down Expand Up @@ -77,7 +88,7 @@ jobs:
command: test
projects: '$(ProjectFile)'
arguments: --filter TestCategory!=Live

- task: DotNetCoreCLI@2
displayName: 'Build & Test (with live tests)'
condition: ne(variables['System.TeamProject'], 'public')
Expand Down

0 comments on commit 0f376ea

Please sign in to comment.