This repository was archived by the owner on Mar 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +24
-8
lines changed
Expand file tree Collapse file tree 5 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ parameters:
1414 displayName : ' Clean build'
1515 type : boolean
1616 default : true
17-
17+
1818jobs :
1919
2020# Compile Microsoft.MixedReality.WebRTC.dll
3434 arguments : ' -f netstandard2.0 --no-incremental -c Release'
3535 workingDirectory : ' libs/Microsoft.MixedReality.WebRTC'
3636
37+ # Run component detection
38+ - task : ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
39+ displayName : ' Component Detection'
40+ inputs :
41+ sourceScanPath : ' $(Build.SourcesDirectory)'
42+ scanType : ' Register'
43+ failOnAlert : true
44+
3745 # # Download mrwebrtc.dll (Win32-x64-buildConfig) for testing
3846 # - ${{ if eq(parameters.withTesting, 'true') }}:
3947 # - task: DownloadPipelineArtifact@2
Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ jobs:
127127 displayName : ' Component Detection before signing'
128128 inputs :
129129 sourceScanPath : ' $(Build.BinariesDirectory)'
130+ scanType : ' Register'
131+ failOnAlert : true
130132
131133 # Sign package content
132134 - task : DownloadSecureFile@1
Original file line number Diff line number Diff line change 8585 submodules : recursive
8686 fetchDepth : ' 50'
8787 clean : ${{parameters.clean}}
88-
88+
8989 # Generate custom .vcxproj to skip any NuGet package related to webrtc.lib, since this pipeline
9090 # is recompiling libwebrtc from sources. This saves both build time and disk space.
9191 - task : PowerShell@2
@@ -142,12 +142,6 @@ jobs:
142142 workingDirectory: 'external/webrtc-uwp-sdk/webrtc/xplatform'
143143 displayName: 'Clean-up unused files'
144144
145- # Run component detection
146- - task : ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
147- displayName : ' Component Detection'
148- inputs :
149- sourceScanPath : ' $(Build.SourcesDirectory)'
150-
151145 # Build webrtc.lib
152146 - task : PythonScript@0
153147 displayName : ' Build webrtc.lib'
@@ -181,6 +175,14 @@ jobs:
181175 configuration : ' ${{parameters.buildConfig}}'
182176 timeoutInMinutes : 20
183177
178+ # Run component detection
179+ - task : ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
180+ displayName : ' Component Detection'
181+ inputs :
182+ sourceScanPath : ' $(Build.SourcesDirectory)'
183+ scanType : ' Register'
184+ failOnAlert : true
185+
184186 # Stage artifacts
185187 - task : CopyFiles@2
186188 displayName : ' Stage mrwebrtc artifacts'
Original file line number Diff line number Diff line change @@ -178,6 +178,8 @@ jobs:
178178 displayName : ' Component Detection before signing'
179179 inputs :
180180 sourceScanPath : ' $(Build.BinariesDirectory)'
181+ scanType : ' Register'
182+ failOnAlert : true
181183
182184 # Sign package content
183185 - task : DownloadSecureFile@1
Original file line number Diff line number Diff line change @@ -121,6 +121,8 @@ jobs:
121121 displayName : ' Component Detection before signing'
122122 inputs :
123123 sourceScanPath : ' libs/unity'
124+ scanType : ' Register'
125+ failOnAlert : true
124126
125127 # Sign library package content
126128 - task : DownloadSecureFile@1
You can’t perform that action at this time.
0 commit comments