-
Notifications
You must be signed in to change notification settings - Fork 2.8k
/
azure-pipelines-ci.yml
64 lines (57 loc) · 1.86 KB
/
azure-pipelines-ci.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
pr: none
trigger: none
variables:
- ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/heads/')) }}:
- name: sinceArg
value: --base $(targetBranch)
- group: fabric-variables
- template: .devops/templates/variables.yml
resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
sdl:
codeql:
compiled:
enabled: true
runSourceLanguagesInSourceAnalysis: true
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-latest
os: windows # We need windows because compliance task only run on windows.
customBuildTags: null # send empty tags since it is not supported on GH repo's for PR's
customLogIssues: null # send empty tags since it is not supported on GH repo's for PR's
stages:
- stage: main
jobs:
- job: BuildTestLint
timeoutInMinutes: 90
pool:
name: '1ES-Host-Ubuntu'
image: '1ES-PT-Ubuntu-20.04'
os: linux
workspace:
clean: all
steps:
- template: .devops/templates/build-test-lint.yml@self
- job: DeployE2E
displayName: Deploy and E2E
timeoutInMinutes: 90
workspace:
clean: all
pool:
name: '1ES-Host-Ubuntu'
image: '1ES-PT-Ubuntu-20.04'
os: linux
templateContext:
outputs:
- output: pipelineArtifact
targetPath: $(System.DefaultWorkingDirectory)/apps/pr-deploy-site/dist
artifactName: web
steps:
- template: .devops/templates/deployE2E.yml@self