-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release new version of vswhere (#259)
* Update docker image (#240) * Update microbuild pool to VS2019 * Use correct pool name * Update docker images * Colorize vswhere output (#244) * Refactor formatters to consolidate arguments * Colorize output by default unless piped * Opt into color and add tests Fails in PowerShell if you do something like `[xml](vswhere -format xml)` if color is enabled, so had to add -color switch. Not ideal since it otherwise disables color when piped, but still easier to read if colorized explicitly. * Enable colors by default, add -nocolor switch * Resolve PR feedback * Ensure console is initialized Could simply call Initialize wherever it needs to be called, but would rather be explicit. * Update AzDO build to use new 1ES pool * Add compliance build * Update targeting to Windows 7 * Enable ControlFlowGuard * Fix Prefast errors in source * Fix test prefast issues * Update to latest cached docker image * Suppress individual prefast warnings for fallthrough cases * FIxup comments for variants * Upgrade agent to Server 2019 with VS2019 (#260) Co-authored-by: Laurel Williams <[email protected]> Co-authored-by: Davi Paulino <[email protected]> Co-authored-by: Davi Paulino <[email protected]> Co-authored-by: Tyler Dunkel <[email protected]>
- Loading branch information
1 parent
ff0de50
commit e2e4e03
Showing
49 changed files
with
775 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Copyright (C) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT license. See LICENSE.txt in the project root for license information. | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
- develop | ||
paths: | ||
exclude: | ||
- README.md | ||
|
||
pr: none | ||
|
||
queue: | ||
name: VSEngSS-MicroBuild2019-1ES | ||
timeoutInMinutes: 120 | ||
demands: | ||
- ChocolateyInstall | ||
- MSBuild | ||
- VisualStudio | ||
- VSTest | ||
|
||
steps: | ||
- template: inc/build.yml | ||
parameters: | ||
BuildConfiguration: $(BuildConfiguration) | ||
BuildPlatform: $(BuildPlatform) | ||
Sign: false | ||
|
||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 | ||
displayName: Detect components | ||
inputs: | ||
sourceScanPath: $(Build.SourcesDirectory) | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-prefast.SDLNativeRules@2 | ||
displayName: 'Run the PREfast SDL Native Rules for MSBuild' | ||
continueOnError: true | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@1 | ||
displayName: 'Run PoliCheck' | ||
inputs: | ||
targetType: F | ||
targetArgument: '$(Build.SourcesDirectory)' | ||
optionsFC: 0 | ||
optionsXS: 1 | ||
optionsHMENABLE: 0 | ||
continueOnError: true | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-binskim.BinSkim@3 | ||
displayName: 'Run BinSkim' | ||
inputs: | ||
InputType: Basic | ||
Function: analyze | ||
AnalyzeTarget: 'bin\$(BuildConfiguration)\*.exe' | ||
AnalyzeSymPath: 'bin\$(BuildConfiguration)' | ||
AnalyzeVerbose: true | ||
AnalyzeHashes: true | ||
continueOnError: true | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2 | ||
displayName: 'Run CredScan' | ||
inputs: | ||
debugMode: false | ||
|
||
# Publish compliance results | ||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@2 | ||
displayName: 'Publish Security Analysis Logs' | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-postanalysis.PostAnalysis@1 | ||
displayName: Check SDL results | ||
inputs: | ||
AllTools: true | ||
|
||
- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1 | ||
displayName: Clean up | ||
condition: succeededOrFailed() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.