This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 233
/
Copy pathazure-pipelines.yml
69 lines (61 loc) · 1.67 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
name: $(Date:yyyyMMdd)$(Rev:.r).0-$(SourceBranchName)
parameters:
- name: SignTypeOverride
displayName: Signing type override
type: string
default: default
values:
- default
- test
- real
schedules:
- cron: 0 6 * * 0
branches:
include:
- main
always: "true"
pr:
- main
trigger:
branches:
include:
- main
tags:
include:
- v*
variables:
${{ if ne(parameters.SignTypeOverride, 'default') }}:
SignType: ${{ parameters.SignTypeOverride }}
${{ if and(eq(parameters.SignTypeOverride, 'default'), or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), eq(variables['Build.SourceBranchName'], 'main'))) }}:
SignType: real
${{ if and(eq(parameters.SignTypeOverride, 'default'), not(or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), eq(variables['Build.SourceBranchName'], 'main')))) }}:
SignType: test
resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: VSEngSS-MicroBuild2022-1ES
sdl:
sourceAnalysisPool: VSEngSS-MicroBuild2022-1ES
tsa:
enabled: true
GdnPublishTsaOnboard: true
GdnPublishTsaConfigFile: $(Build.SourcesDirectory)\build\tsa.gdntsa
policheck:
enabled: true
spotBugs:
enabled: false # Turn this off, this isn't java.
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: stage
jobs:
- template: /build/build.yml@self