-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a separate unofficial.yml pipeline (#334)
- Loading branch information
1 parent
862f998
commit d158387
Showing
5 changed files
with
141 additions
and
89 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
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,90 @@ | ||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- main | ||
- microbuild | ||
- 'validate/*' | ||
paths: | ||
exclude: | ||
- doc/ | ||
- '*.md' | ||
- .vscode/ | ||
- azure-pipelines/release.yml | ||
- azure-pipelines/vs-insertion.yml | ||
|
||
parameters: | ||
# As an entrypoint pipeline yml file, all parameters here show up in the Queue Run dialog. | ||
# If any paramaters should NOT be queue-time options, they should be removed from here | ||
# and references to them in this file replaced with hard-coded values. | ||
# - name: ShouldSkipOptimize # Uncomment this and references to it below when setting EnableOptProf to true in build.yml. | ||
# displayName: Skip OptProf optimization | ||
# type: boolean | ||
# default: false | ||
- name: EnableMacOSBuild | ||
displayName: Build on macOS | ||
type: boolean | ||
default: false # macOS is often bogged down in Azure Pipelines | ||
- name: RunTests | ||
displayName: Run tests | ||
type: boolean | ||
default: true | ||
- name: EnableAPIScan | ||
displayName: Include APIScan with compliance tools | ||
type: boolean | ||
default: false | ||
- name: EnableProductionSDL | ||
displayName: Enable Production SDL | ||
type: boolean | ||
default: false | ||
|
||
resources: | ||
repositories: | ||
- repository: MicroBuildTemplate | ||
type: git | ||
name: 1ESPipelineTemplates/MicroBuildTemplate | ||
ref: refs/tags/release | ||
|
||
variables: | ||
- template: GlobalVariables.yml | ||
|
||
extends: | ||
template: azure-pipelines/MicroBuild.1ES.Unofficial.yml@MicroBuildTemplate | ||
parameters: | ||
sdl: | ||
sourceAnalysisPool: VSEngSS-MicroBuild2022-1ES | ||
suppression: | ||
suppressionFile: $(System.DefaultWorkingDirectory)\azure-pipelines\falsepositives.gdnsuppress | ||
enableProductionSDL: ${{ parameters.EnableProductionSDL }} | ||
codeSignValidation: | ||
enabled: ${{ parameters.EnableProductionSDL }} | ||
break: true | ||
policyFile: $(MBSIGN_APPFOLDER)\CSVTestSignPolicy.xml | ||
policheck: | ||
enabled: ${{ parameters.EnableProductionSDL }} | ||
exclusionsFile: $(System.DefaultWorkingDirectory)\azure-pipelines\PoliCheckExclusions.xml | ||
sbom: | ||
enabled: ${{ parameters.EnableProductionSDL }} | ||
stages: | ||
- stage: Build | ||
variables: | ||
- template: /azure-pipelines/BuildStageVariables.yml@self | ||
jobs: | ||
- template: /azure-pipelines/build.yml@self | ||
parameters: | ||
Is1ESPT: true | ||
RealSign: false | ||
# ShouldSkipOptimize: ${{ parameters.ShouldSkipOptimize }} | ||
EnableAPIScan: ${{ parameters.EnableAPIScan }} | ||
windowsPool: VSEngSS-MicroBuild2022-1ES | ||
linuxPool: | ||
name: AzurePipelines-EO | ||
demands: | ||
- ImageOverride -equals 1ESPT-Ubuntu22.04 | ||
os: Linux | ||
macOSPool: | ||
name: Azure Pipelines | ||
vmImage: macOS-14 | ||
os: macOS | ||
EnableMacOSBuild: ${{ parameters.EnableMacOSBuild }} | ||
RunTests: ${{ parameters.RunTests }} |