Skip to content

Commit

Permalink
Just a bit more tweaking to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth authored Mar 12, 2019
1 parent d22bed4 commit 806e5fc
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,22 @@ jobs:
inputs:
artifactName: nuget
pathToPublish: '$(Build.ArtifactStagingDirectory)/nuget'
# make sure we are following the rules
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
condition: and(not(startsWith(variables['Build.SourceBranch'], 'refs/tags/')), eq(variables['System.TeamProject'], 'devdiv'))
displayName: Component Detection - Log
inputs:
scanType: LogOnly
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
condition: and(startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['System.TeamProject'], 'devdiv'))
displayName: Component Detection - Report
- task: securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@1
condition: eq(variables['System.TeamProject'], 'devdiv')
displayName: 'PoliCheck'
inputs:
targetType: F

- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
# make sure we are following the rules
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
condition: not(startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: Component Detection - Log
inputs:
scanType: LogOnly
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
displayName: Component Detection - Report
- task: securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@1
condition: eq(variables['System.TeamProject'], 'devdiv')
displayName: 'PoliCheck'
inputs:
targetType: F

- job: build_macos
displayName: Build macOS Library
Expand Down

0 comments on commit 806e5fc

Please sign in to comment.