Merge pull request #19 from microsoft/dev/sknam/prepare-compliance-pi… · microsoft/VSConfigFinder@87c0a62 (original) (raw)
3 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| 1 | +# Copyright (C) Microsoft Corporation. All rights reserved. | |
| 2 | +# Licensed under the MIT license. See LICENSE.txt in the project root for license information. | |
| 3 | + | |
| 4 | +parameters: | |
| 5 | +BuildConfiguration: Release | |
| 6 | + | |
| 7 | +steps: | |
| 8 | +- task: UseDotNet@2 | |
| 9 | +displayName: 'Install .NET Core SDK' | |
| 10 | +inputs: | |
| 11 | +useGlobalJson: true | |
| 12 | + | |
| 13 | +- task: DotNetCoreCLI@2 | |
| 14 | +displayName: Build | |
| 15 | +inputs: | |
| 16 | +command: 'build' | |
| 17 | +projects: 'VSConfigFinder' | |
| 18 | +arguments: '--configuration $(BuildConfiguration)' | |
| 19 | + | |
| 20 | +- task: DotNetCoreCLI@2 | |
| 21 | +displayName: Test | |
| 22 | +inputs: | |
| 23 | +command: 'test' | |
| 24 | +projects: 'VSConfigFinder.Test' | |
| 25 | +arguments: '--configuration $(BuildConfiguration)' | |
| 26 | + | |
| 27 | +- task: DotNetCoreCLI@2 | |
| 28 | +displayName: Publish | |
| 29 | +inputs: | |
| 30 | +command: 'publish' | |
| 31 | +arguments: '--no-build --configuration $(BuildConfiguration)' | |
| 32 | +publishWebProjects: false | |
| 33 | +zipAfterPublish: false | |
| 34 | + | |
| 35 | +- task: CopyFiles@2 | |
| 36 | +displayName: 'Copy build artifacts from: (Build.SourcesDirectory)VSConfigFinderbin(Build.SourcesDirectory)\VSConfigFinder\bin\(Build.SourcesDirectory)VSConfigFinderbin(BuildConfiguration)\** to $(Build.ArtifactStagingDirectory)\out' | |
| 37 | +inputs: | |
| 38 | +SourceFolder: $(Build.SourcesDirectory)\VSConfigFinder | |
| 39 | +Contents: | | |
| 40 | + bin\$(BuildConfiguration)\** | |
| 41 | + TargetFolder: $(Build.ArtifactStagingDirectory)\out | |
| 42 | + | |
| 43 | +- task: PublishBuildArtifacts@1 | |
| 44 | +displayName: 'Publish build artifacts from: $(Build.ArtifactStagingDirectory)\out' | |
| 45 | +inputs: | |
| 46 | +PathtoPublish: $(Build.ArtifactStagingDirectory)\out | |
| 47 | +ArtifactName: drop | |
| 48 | +publishLocation: Container |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -32,44 +32,6 @@ steps: | ||
| 32 | 32 | env: |
| 33 | 33 | TeamName: '$(TeamName)' |
| 34 | 34 | |
| 35 | -- task: UseDotNet@2 | |
| 36 | -displayName: 'Install .NET Core SDK' | |
| 37 | -inputs: | |
| 38 | -useGlobalJson: true | |
| 39 | - | |
| 40 | -- task: DotNetCoreCLI@2 | |
| 41 | -displayName: Build | |
| 42 | -inputs: | |
| 43 | -command: 'build' | |
| 44 | -projects: 'VSConfigFinder' | |
| 45 | -arguments: '--configuration $(BuildConfiguration)' | |
| 46 | - | |
| 47 | -- task: DotNetCoreCLI@2 | |
| 48 | -displayName: Test | |
| 49 | -inputs: | |
| 50 | -command: 'test' | |
| 51 | -projects: 'VSConfigFinder.Test' | |
| 52 | -arguments: '--configuration $(BuildConfiguration)' | |
| 53 | - | |
| 54 | -- task: DotNetCoreCLI@2 | |
| 55 | -displayName: Publish | |
| 56 | -inputs: | |
| 57 | -command: 'publish' | |
| 58 | -arguments: '--no-build --configuration $(BuildConfiguration)' | |
| 59 | -publishWebProjects: false | |
| 60 | -zipAfterPublish: false | |
| 61 | - | |
| 62 | -- task: CopyFiles@2 | |
| 63 | -displayName: 'Copy build artifacts' | |
| 64 | -inputs: | |
| 65 | -SourceFolder: $(Build.SourcesDirectory)\VSConfigFinder | |
| 66 | -Contents: | | |
| 67 | - bin\$(BuildConfiguration)\**\publish\* | |
| 68 | - TargetFolder: $(Build.ArtifactStagingDirectory)\out | |
| 69 | - | |
| 70 | -- task: PublishBuildArtifacts@1 | |
| 71 | -displayName: 'Publish build artifacts' | |
| 72 | -inputs: | |
| 73 | -PathtoPublish: $(Build.ArtifactStagingDirectory)\out | |
| 74 | -ArtifactName: drop | |
| 75 | -publishLocation: Container | |
| 35 | +- template: build.yml | |
| 36 | +parameters: | |
| 37 | +BuildConfiguration: $(BuildConfiguration) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| 1 | +# Copyright (C) Microsoft Corporation. All rights reserved. | |
| 2 | +# Licensed under the MIT license. See LICENSE.txt in the project root for license information. | |
| 3 | + | |
| 4 | +variables: | |
| 5 | +BuildConfiguration: Release | |
| 6 | +TeamName: vssetup | |
| 7 | + | |
| 8 | +trigger: | |
| 9 | +batch: true | |
| 10 | +branches: | |
| 11 | +include: | |
| 12 | + - main | |
| 13 | +paths: | |
| 14 | +exclude: | |
| 15 | + - README.md | |
| 16 | + | |
| 17 | +pr: none | |
| 18 | + | |
| 19 | +queue: | |
| 20 | +name: VSEngSS-MicroBuild2019-1ES | |
| 21 | +timeoutInMinutes: 120 | |
| 22 | + | |
| 23 | +schedules: | |
| 24 | +- cron: "0 12 * * 1" | |
| 25 | +displayName: 'Run every Monday at 12:00 p.m.' | |
| 26 | +branches: | |
| 27 | +include: | |
| 28 | + - main | |
| 29 | +always: true | |
| 30 | + | |
| 31 | +steps: | |
| 32 | +- template: build.yml | |
| 33 | +parameters: | |
| 34 | +BuildConfiguration: $(BuildConfiguration) | |
| 35 | + | |
| 36 | +- task: BinSkim@4 | |
| 37 | +displayName: 'Run BinSkim' | |
| 38 | +inputs: | |
| 39 | +InputType: Basic | |
| 40 | +Function: analyze | |
| 41 | +TargetPattern: guardianGlob | |
| 42 | +AnalyzeTargetGlob: '$(Build.ArtifactStagingDirectory)\**.dll;$(Build.ArtifactStagingDirectory)\**.exe;-:f|$(Build.ArtifactStagingDirectory)\**clrjit.dll;-:f | |
| 43 | +AnalyzeVerbose: true | |
| 44 | +AnalyzeHashes: true | |
| 45 | +continueOnError: true | |
| 46 | + | |
| 47 | +- task: ComponentGovernanceComponentDetection@0 | |
| 48 | +displayName: 'Run Component Detection' | |
| 49 | +inputs: | |
| 50 | +sourceScanPath: $(Build.SourcesDirectory) | |
| 51 | +continueOnError: True | |
| 52 | + | |
| 53 | +- task: RoslynAnalyzers@3 | |
| 54 | +displayName: 'Run Roslyn Analyzers' | |
| 55 | +inputs: | |
| 56 | +userProvideBuildInfo: auto | |
| 57 | +rulesetName: Recommended | |
| 58 | +rulesetVersion: Latest | |
| 59 | +condition: succeededOrFailed() | |
| 60 | +continueOnError: True | |
| 61 | +env: | |
| 62 | +system_accesstoken: $(System.AccessToken) | |
| 63 | + | |
| 64 | +- task: PoliCheck@2 | |
| 65 | +displayName: 'Run PoliCheck' | |
| 66 | +inputs: | |
| 67 | +targetType: F | |
| 68 | +targetArgument: '$(Build.SourcesDirectory)' | |
| 69 | +optionsFC: 0 | |
| 70 | +optionsXS: 1 | |
| 71 | +optionsHMENABLE: 0 | |
| 72 | +continueOnError: true | |
| 73 | + | |
| 74 | +- task: CredScan@2 | |
| 75 | +displayName: 'Run CredScan' | |
| 76 | +inputs: | |
| 77 | +debugMode: false | |
| 78 | + | |
| 79 | +- task: PublishSecurityAnalysisLogs@2 | |
| 80 | +displayName: 'Publish Security Analysis Logs' | |
| 81 | + | |
| 82 | +- task: PostAnalysis@1 | |
| 83 | +displayName: 'Check SDL results' | |
| 84 | +inputs: | |
| 85 | +AllTools: true | |
| 86 | + | |
| 87 | +- task: MicroBuildCleanup@1 | |
| 88 | +displayName: 'Clean up' | |
| 89 | +condition: succeededOrFailed() |