2019-02-05 06:22:35 +03:00
|
|
|
trigger:
|
2021-02-05 11:34:05 +03:00
|
|
|
- main
|
2020-04-28 22:45:19 +03:00
|
|
|
- develop
|
2023-08-17 01:17:07 +03:00
|
|
|
- release/*
|
2019-09-24 02:34:44 +03:00
|
|
|
|
2020-03-10 00:57:56 +03:00
|
|
|
pr:
|
2021-02-05 11:34:05 +03:00
|
|
|
- main
|
2020-04-28 22:45:19 +03:00
|
|
|
- develop
|
2023-08-17 01:17:07 +03:00
|
|
|
- release/*
|
2020-03-10 00:57:56 +03:00
|
|
|
|
2021-11-13 08:59:12 +03:00
|
|
|
parameters:
|
|
|
|
- name: buildExternals
|
2024-02-28 23:38:00 +03:00
|
|
|
displayName: 'The Build ID containing the specific native artifacts to use:'
|
2022-05-30 10:40:53 +03:00
|
|
|
type: string
|
|
|
|
default: 'latest'
|
2024-02-28 23:38:00 +03:00
|
|
|
- name: buildAgentHost
|
|
|
|
displayName: 'The generic host build agent configuration:'
|
2022-05-27 21:23:34 +03:00
|
|
|
type: object
|
|
|
|
default:
|
|
|
|
pool:
|
2024-03-06 22:44:34 +03:00
|
|
|
name: Maui-1ESPT
|
2024-02-28 23:38:00 +03:00
|
|
|
image: 1ESPT-Windows2022
|
|
|
|
os: windows
|
|
|
|
- name: buildAgentWindows
|
|
|
|
displayName: 'The Windows build agent configuration:'
|
2022-03-02 10:24:47 +03:00
|
|
|
type: object
|
|
|
|
default:
|
2022-04-09 03:55:21 +03:00
|
|
|
pool:
|
2024-03-06 22:44:34 +03:00
|
|
|
name: Maui-1ESPT
|
2024-02-28 23:38:00 +03:00
|
|
|
image: 1ESPT-Windows2022
|
|
|
|
os: windows
|
2024-07-29 15:48:02 +03:00
|
|
|
- name: buildAgentWindowsNative
|
|
|
|
displayName: 'The Windows build agent configuration for building the native assets:'
|
|
|
|
type: object
|
|
|
|
default:
|
|
|
|
pool:
|
|
|
|
name: Maui-1ESPT
|
|
|
|
image: 1ESPT-Windows2022
|
|
|
|
os: windows
|
2024-02-28 23:38:00 +03:00
|
|
|
- name: buildAgentMac
|
|
|
|
displayName: 'The macOS build agent configuration:'
|
2023-07-30 18:49:57 +03:00
|
|
|
type: object
|
2024-07-29 15:48:02 +03:00
|
|
|
default:
|
|
|
|
pool:
|
|
|
|
name: Azure Pipelines
|
|
|
|
vmImage: macos-14
|
|
|
|
os: macos
|
|
|
|
- name: buildAgentMacNative
|
|
|
|
displayName: 'The macOS build agent configuration for building the native assets:'
|
|
|
|
type: object
|
2023-07-30 18:49:57 +03:00
|
|
|
default:
|
|
|
|
pool:
|
|
|
|
name: Azure Pipelines
|
|
|
|
vmImage: macos-13
|
2024-02-28 23:38:00 +03:00
|
|
|
os: macos
|
|
|
|
- name: buildAgentLinux
|
2024-07-29 15:48:02 +03:00
|
|
|
displayName: 'The Linux build agent configuration:'
|
|
|
|
type: object
|
|
|
|
default:
|
|
|
|
pool:
|
|
|
|
name: Maui-1ESPT
|
|
|
|
image: 1ESPT-Ubuntu22.04
|
|
|
|
os: linux
|
|
|
|
- name: buildAgentLinuxNative
|
|
|
|
displayName: 'The Linux build agent configuration for building the native assets:'
|
2022-03-02 10:24:47 +03:00
|
|
|
type: object
|
|
|
|
default:
|
2022-04-09 03:55:21 +03:00
|
|
|
pool:
|
2024-03-06 22:44:34 +03:00
|
|
|
name: Maui-1ESPT
|
2024-02-28 23:38:00 +03:00
|
|
|
image: 1ESPT-Ubuntu20.04
|
|
|
|
os: linux
|
2024-02-06 03:35:52 +03:00
|
|
|
- name: runCompliance
|
2024-03-25 20:59:30 +03:00
|
|
|
displayName: 'Run post-build compliance tasks (such as API Scan and PoliCheck)'
|
2024-02-06 03:35:52 +03:00
|
|
|
type: boolean
|
|
|
|
default: false
|
2024-07-17 16:25:29 +03:00
|
|
|
- name: forceRealSigning
|
|
|
|
displayName: 'Ignore all logic and force Real signing on binaries'
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2021-11-13 08:59:12 +03:00
|
|
|
|
2019-02-05 06:22:35 +03:00
|
|
|
variables:
|
2024-02-28 23:38:00 +03:00
|
|
|
- template: /scripts/azure-pipelines-variables.yml@self
|
2019-09-24 02:34:44 +03:00
|
|
|
|
2019-02-21 00:48:56 +03:00
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: xamarin-templates
|
|
|
|
type: github
|
|
|
|
name: xamarin/yaml-templates
|
|
|
|
endpoint: xamarin
|
2020-12-27 15:47:09 +03:00
|
|
|
ref: refs/heads/main
|
2024-02-28 23:38:00 +03:00
|
|
|
- repository: 1ESPipelineTemplates
|
|
|
|
type: git
|
|
|
|
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
|
|
|
ref: refs/tags/release
|
2019-02-21 00:48:56 +03:00
|
|
|
|
2024-02-28 23:38:00 +03:00
|
|
|
extends:
|
|
|
|
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
|
|
|
|
parameters:
|
|
|
|
pool: ${{ parameters.buildAgentHost.pool }}
|
|
|
|
customBuildTags:
|
|
|
|
- ES365AIMigrationTooling
|
|
|
|
stages:
|
|
|
|
- template: /scripts/azure-templates-stages.yml@self
|
|
|
|
parameters:
|
|
|
|
buildPipelineType: 'build'
|
|
|
|
buildExternals: ${{ parameters.buildExternals }}
|
2024-03-25 20:59:30 +03:00
|
|
|
${{ if and(eq(variables['System.TeamProject'], 'devdiv'), ne(variables['System.PullRequest.IsFork'], 'true')) }}:
|
|
|
|
enableSigning: true
|
2024-07-17 16:25:29 +03:00
|
|
|
forceRealSigning: ${{ parameters.forceRealSigning }}
|
2024-03-25 20:59:30 +03:00
|
|
|
${{ if or(parameters.runCompliance, and(eq(variables['Build.Reason'], 'Schedule'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')))) }}:
|
|
|
|
sdl:
|
|
|
|
apiscan:
|
|
|
|
enabled: true
|
|
|
|
binskim:
|
|
|
|
enabled: true
|
|
|
|
break: false
|
|
|
|
codeInspector:
|
|
|
|
enabled: true
|
|
|
|
credscan:
|
|
|
|
enabled: true
|
|
|
|
# suppressionsFile: $(Build.SourcesDirectory)\scripts\guardian\CredScanSuppressions.json
|
|
|
|
policheck:
|
|
|
|
enabled: true
|
|
|
|
exclusionsFile: $(Build.SourcesDirectory)\scripts\guardian\PoliCheckExclusions.xml
|
|
|
|
spotBugs:
|
|
|
|
enabled: false
|
|
|
|
suppression:
|
|
|
|
suppressionFile: $(Build.SourcesDirectory)\scripts\guardian\source.gdnsuppress
|
|
|
|
tsa:
|
|
|
|
enabled: true
|
|
|
|
configFile: $(Build.SourcesDirectory)\scripts\guardian\tsaoptions-v2.json
|
2024-02-28 23:38:00 +03:00
|
|
|
use1ESPipelineTemplates: true
|
|
|
|
buildAgentHost: ${{ parameters.buildAgentHost }}
|
|
|
|
buildAgentWindows: ${{ parameters.buildAgentWindows }}
|
2024-07-29 15:48:02 +03:00
|
|
|
buildAgentWindowsNative: ${{ parameters.buildAgentWindowsNative }}
|
2024-02-28 23:38:00 +03:00
|
|
|
buildAgentMac: ${{ parameters.buildAgentMac }}
|
2024-07-29 15:48:02 +03:00
|
|
|
buildAgentMacNative: ${{ parameters.buildAgentMacNative }}
|
2024-02-28 23:38:00 +03:00
|
|
|
buildAgentLinux: ${{ parameters.buildAgentLinux }}
|
2024-07-29 15:48:02 +03:00
|
|
|
buildAgentLinuxNative: ${{ parameters.buildAgentLinuxNative }}
|
2024-07-25 19:28:28 +03:00
|
|
|
buildAgentAndroidTests: ${{ parameters.buildAgentMac }}
|