File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed 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
324
324
clean: True
325
325
displayName: Visual Studio Build
326
326
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
+ }
328
341
329
342
- task: CmdLine@2
330
343
displayName: Finalize CodeQL database
You can’t perform that action at this time.
0 commit comments