Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Commit

Permalink
Run Component Detection after build with correct options
Browse files Browse the repository at this point in the history
  • Loading branch information
fibann committed Sep 16, 2020
1 parent 7843094 commit 713c01d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
10 changes: 9 additions & 1 deletion tools/ci/templates/jobs-cslib-release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ parameters:
displayName: 'Clean build'
type: boolean
default: true

jobs:

# Compile Microsoft.MixedReality.WebRTC.dll
Expand All @@ -34,6 +34,14 @@ jobs:
arguments: '-f netstandard2.0 --no-incremental -c Release'
workingDirectory: 'libs/Microsoft.MixedReality.WebRTC'

# Run component detection
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
inputs:
sourceScanPath: '$(Build.SourcesDirectory)'
scanType: 'Register'
failOnAlert: true

# # Download mrwebrtc.dll (Win32-x64-buildConfig) for testing
# - ${{ if eq(parameters.withTesting, 'true') }}:
# - task: DownloadPipelineArtifact@2
Expand Down
2 changes: 2 additions & 0 deletions tools/ci/templates/jobs-cslib-release-pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ jobs:
displayName: 'Component Detection before signing'
inputs:
sourceScanPath: '$(Build.BinariesDirectory)'
scanType: 'Register'
failOnAlert: true

# Sign package content
- task: DownloadSecureFile@1
Expand Down
16 changes: 9 additions & 7 deletions tools/ci/templates/jobs-mrwebrtc-release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
submodules: recursive
fetchDepth: '50'
clean: ${{parameters.clean}}

# Generate custom .vcxproj to skip any NuGet package related to webrtc.lib, since this pipeline
# is recompiling libwebrtc from sources. This saves both build time and disk space.
- task: PowerShell@2
Expand Down Expand Up @@ -142,12 +142,6 @@ jobs:
workingDirectory: 'external/webrtc-uwp-sdk/webrtc/xplatform'
displayName: 'Clean-up unused files'
# Run component detection
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
inputs:
sourceScanPath: '$(Build.SourcesDirectory)'

# Build webrtc.lib
- task: PythonScript@0
displayName: 'Build webrtc.lib'
Expand Down Expand Up @@ -181,6 +175,14 @@ jobs:
configuration: '${{parameters.buildConfig}}'
timeoutInMinutes: 20

# Run component detection
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
inputs:
sourceScanPath: '$(Build.SourcesDirectory)'
scanType: 'Register'
failOnAlert: true

# Stage artifacts
- task: CopyFiles@2
displayName: 'Stage mrwebrtc artifacts'
Expand Down
2 changes: 2 additions & 0 deletions tools/ci/templates/jobs-mrwebrtc-release-pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ jobs:
displayName: 'Component Detection before signing'
inputs:
sourceScanPath: '$(Build.BinariesDirectory)'
scanType: 'Register'
failOnAlert: true

# Sign package content
- task: DownloadSecureFile@1
Expand Down
2 changes: 2 additions & 0 deletions tools/ci/templates/jobs-unity-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ jobs:
displayName: 'Component Detection before signing'
inputs:
sourceScanPath: 'libs/unity'
scanType: 'Register'
failOnAlert: true

# Sign library package content
- task: DownloadSecureFile@1
Expand Down

0 comments on commit 713c01d

Please sign in to comment.