msbuild
32 строки · 2.1 Кб
1parameters:
2# Language that should be analyzed. Defaults to csharp
3language: csharp
4# Build Commands
5buildCommands: ''
6overrideParameters: '' # Optional: to override values for parameters.
7additionalParameters: '' # Optional: parameters that need user specific values eg: '-SourceToolsList @("abc","def") -ArtifactToolsList @("ghi","jkl")'
8# Optional: if specified, restore and use this version of Guardian instead of the default.
9overrideGuardianVersion: ''
10# Optional: if true, publish the '.gdn' folder as a pipeline artifact. This can help with in-depth
11# diagnosis of problems with specific tool configurations.
12publishGuardianDirectoryToPipeline: false
13# The script to run to execute all SDL tools. Use this if you want to use a script to define SDL
14# parameters rather than relying on YAML. It may be better to use a local script, because you can
15# reproduce results locally without piecing together a command based on the YAML.
16executeAllSdlToolsScript: 'eng/common/sdl/execute-all-sdl-tools.ps1'
17# There is some sort of bug (has been reported) in Azure DevOps where if this parameter is named
18# 'continueOnError', the parameter value is not correctly picked up.
19# This can also be remedied by the caller (post-build.yml) if it does not use a nested parameter
20# optional: determines whether to continue the build if the step errors;
21sdlContinueOnError: false
22
23steps:
24- template: /eng/common/templates-official/steps/execute-sdl.yml
25parameters:
26overrideGuardianVersion: ${{ parameters.overrideGuardianVersion }}
27executeAllSdlToolsScript: ${{ parameters.executeAllSdlToolsScript }}
28overrideParameters: ${{ parameters.overrideParameters }}
29additionalParameters: '${{ parameters.additionalParameters }}
30-CodeQLAdditionalRunConfigParams @("BuildCommands < ${{ parameters.buildCommands }}", "Language < ${{ parameters.language }}")'
31publishGuardianDirectoryToPipeline: ${{ parameters.publishGuardianDirectoryToPipeline }}
32sdlContinueOnError: ${{ parameters.sdlContinueOnError }}