This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release build for MMI and restructure CI build (#39)
- Loading branch information
1 parent
233fd52
commit 8069b24
Showing
6 changed files
with
153 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: MMI-$(Build.BuildId) | ||
trigger: | ||
branches: | ||
include: | ||
- master | ||
- release* | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
- release* | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- template: templates/build.yml | ||
|
||
- template: templates/test.yml |
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,24 @@ | ||
name: MMI-$(Build.BuildId) | ||
trigger: | ||
branches: | ||
include: | ||
- master | ||
- release* | ||
pr: | ||
branches: | ||
include: | ||
- master | ||
- release* | ||
|
||
jobs: | ||
|
||
- job: build_MMI | ||
displayName: Build MMI | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
steps: | ||
- template: templates/build.yml | ||
|
||
- template: templates/compliance.yml | ||
parameters: | ||
parentJob: build_MMI |
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,18 @@ | ||
steps: | ||
- checkout: self | ||
|
||
- bash: sudo apt-get install libpam0g-dev libssl-dev libcurl4-openssl-dev | ||
displayName: 'apt-get dependencies' | ||
|
||
- bash: ./build.sh | ||
displayName: 'Build MMI' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
artifactName: 'release' | ||
pathToPublish: src/Microsoft.Management.Infrastructure/bin/Microsoft.Management.Infrastructure.dll | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
artifactName: 'release' | ||
pathToPublish: src/Microsoft.Management.Infrastructure/bin/Microsoft.Management.Infrastructure.pdb |
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,83 @@ | ||
parameters: | ||
parentJob: build | ||
|
||
jobs: | ||
- job: compliance | ||
displayName: Compliance for MMI | ||
pool: | ||
name: Package ES CodeHub Lab E | ||
dependsOn: | ||
${{ parameters.parentJob }} | ||
|
||
steps: | ||
- task: DownloadBuildArtifacts@0 | ||
displayName: 'Download artifacts' | ||
inputs: | ||
buildType: current | ||
downloadType: single | ||
artifactName: release | ||
downloadPath: '$(System.ArtifactsDirectory)' | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-antimalware.AntiMalware@3 | ||
displayName: 'Run Defender Scan' | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2 | ||
displayName: 'Run CredScan' | ||
inputs: | ||
debugMode: false | ||
continueOnError: true | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-binskim.BinSkim@3 | ||
displayName: 'Run BinSkim ' | ||
inputs: | ||
InputType: Basic | ||
AnalyzeTarget: '$(System.ArtifactsDirectory)/*.dll' | ||
AnalyzeSymPath: 'SRV*' | ||
AnalyzeVerbose: true | ||
AnalyzeHashes: true | ||
AnalyzeStatistics: true | ||
continueOnError: true | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@1 | ||
displayName: 'Run PoliCheck' | ||
inputs: | ||
targetType: F | ||
optionsFC: 0 | ||
optionsXS: 0 | ||
optionsPE: '1|2|3|4' | ||
optionsHMENABLE: 0 | ||
toolVersion: 5.8.2.1 | ||
continueOnError: true | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-publishsecurityanalysislogs.PublishSecurityAnalysisLogs@2 | ||
displayName: 'Publish Security Analysis Logs to Build Artifacts' | ||
continueOnError: true | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-uploadtotsa.TSAUpload@1 | ||
displayName: 'TSA upload to Codebase: MMI_20190701 Version: TsaV2' | ||
inputs: | ||
tsaVersion: TsaV2 | ||
codeBaseName: 'MMI_20190701' | ||
uploadAPIScan: false | ||
uploadFortifySCA: false | ||
uploadFxCop: false | ||
uploadModernCop: false | ||
uploadPREfast: false | ||
uploadRoslyn: false | ||
uploadTSLint: false | ||
|
||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-report.SdtReport@1 | ||
displayName: 'Create Security Analysis Report' | ||
inputs: | ||
TsvFile: false | ||
APIScan: true | ||
BinSkim: true | ||
CredScan: true | ||
PoliCheck: true | ||
PoliCheckBreakOn: Severity2Above | ||
|
||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 | ||
displayName: 'Component Detection' | ||
inputs: | ||
sourceScanPath: '$(Build.SourcesDirectory)' | ||
snapshotForceEnabled: true |
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,9 @@ | ||
steps: | ||
- bash: ./test.sh | ||
displayName: 'Execute Tests' | ||
|
||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFormat: 'VSTest' | ||
testResultsFiles: '**/*TestResults.trx' | ||
failTaskOnFailedTests: 'true' |
This file was deleted.
Oops, something went wrong.