File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -324,7 +324,20 @@ The following example shows how you could use indirect build tracing in an Azure
324324 clean: True
325325 displayName: Visual Studio Build
326326
327- # End build tracing.
327+ # Read and set the generated environment variables to end build tracing. This is done in PowerShell in this example.
328+ - task: PowerShell@1
329+ displayName: Set CodeQL environment variables
330+ inputs:
331+ targetType: inline
332+ script: >
333+ $json = Get-Content $(System.DefaultWorkingDirectory)/db/temp/tracingEnvironment/end-tracing.json | ConvertFrom-Json
334+ $json.PSObject.Properties | ForEach-Object {
335+ $template = "##vso[task.setvariable variable="
336+ $template += $_.Name
337+ $template += "]"
338+ $template += $_.Value
339+ echo "$template"
340+ }
328341
329342 - task: CmdLine@2
330343 displayName: Finalize CodeQL database
You can’t perform that action at this time.
0 commit comments