Skip to content

Commit 5794918

Browse files
authored
Use shared pipelines (#716)
1 parent 17ede70 commit 5794918

File tree

12 files changed

+61
-304
lines changed

12 files changed

+61
-304
lines changed

.azure-pipelines/common/build.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.azure-pipelines/common/lint.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.azure-pipelines/common/package.yml

Lines changed: 0 additions & 86 deletions
This file was deleted.

.azure-pipelines/common/sbom.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.azure-pipelines/common/test.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
{
2-
"tool": "Credential Scanner",
3-
"suppressions": [
4-
{
5-
"folder": "node_modules\\",
6-
"_justification": "No need to scan external node modules."
7-
}
8-
]
9-
}
1+
// More info at https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/cred-bot-trinity/credential-risk-exposure-defense/troubleshoot_guides/local-suppressions
2+
{
3+
"tool": "Credential Scanner",
4+
"suppressions": [
5+
{
6+
"folder": "node_modules\\",
7+
"_justification": "No need to scan external node modules."
8+
}
9+
]
10+
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<PoliCheckExclusions>
2+
<!-- More info at https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/sdl-azdo-extension/policheck-build-task#excluding-files-or-folders-from-the-policheck-scan -->
23
<!--Each of these exclusions is a folder name -if \[name]\exists in the file path, it will be skipped -->
3-
<Exclusion Type="FolderPathFull">NODE_MODULES|DIST</Exclusion>
4+
<Exclusion Type="FolderPathFull">NODE_MODULES|BACKUPTEMPLATES|.VSCODE-TEST|DIST</Exclusion>
45
<!--Each of these exclusions is a folder name -if any folder or file starts with "\[name]", it will be skipped -->
56
<!--<Exclusion Type="FolderPathStart">ABC|XYZ</Exclusion>-->
67
<!--Each of these file types will be completely skipped for the entire scan -->
78
<!--<Exclusion Type="FileType">.ABC|.XYZ</Exclusion>-->
89
<!--The specified file names will be skipped during the scan regardless which folder they are in -->
9-
<!--<Exclusion Type="FileName">ABC.TXT|XYZ.CS</Exclusion>-->
10+
<Exclusion Type="FileName">NOTICE.HTML</Exclusion>
1011
</PoliCheckExclusions>

.azure-pipelines/compliance/compliance.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.azure-pipelines/linux/xvfb.init

Lines changed: 0 additions & 56 deletions
This file was deleted.

.azure-pipelines/main.yml

Lines changed: 23 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,52 +5,29 @@ variables:
55
ENABLE_LONG_RUNNING_TESTS: true
66
ENABLE_COMPLIANCE: true
77

8-
jobs:
9-
- job: Windows
10-
pool:
11-
vmImage: windows-latest
12-
steps:
13-
- template: common/build.yml
14-
- template: common/package.yml
15-
- template: common/lint.yml
16-
- template: compliance/compliance.yml # Only works on Windows
17-
- template: common/test.yml
18-
19-
- job: Linux
20-
pool:
21-
vmImage: ubuntu-latest
22-
steps:
23-
- template: common/build.yml
24-
- template: common/package.yml
25-
- template: common/sbom.yml # Only generate on linux
26-
- template: common/lint.yml
27-
- template: common/test.yml
28-
variables:
29-
Codeql.Enabled: $[in(variables['Build.Reason'], 'Schedule')] # Enable CodeQL only on scheduled builds because it is slow
30-
31-
- job: macOS
32-
pool:
33-
vmImage: macOS-latest
34-
steps:
35-
- template: common/build.yml
36-
- template: common/package.yml
37-
- template: common/lint.yml
38-
- template: common/test.yml
39-
8+
# Trigger the build whenever `main` or `rel/*` is updated
409
trigger:
41-
branches:
42-
include:
43-
- '*'
44-
45-
pr:
46-
branches:
47-
include:
48-
- '*'
10+
- main
11+
- rel/*
4912

13+
# Scheduled nightly build
5014
schedules:
51-
- cron: "30 9 * * *"
52-
displayName: Nightly at 2:30 PT
53-
always: true # Run even when there are no code changes
54-
branches:
55-
include:
56-
- main
15+
- cron: "30 9 * * *"
16+
displayName: Nightly at 2:30 PT
17+
always: true # Run even when there are no code changes
18+
branches:
19+
include:
20+
- main
21+
22+
# Grab the base templates from https://github.com/microsoft/vscode-azuretools/tree/main/azure-pipelines
23+
resources:
24+
repositories:
25+
- repository: templates
26+
type: github
27+
name: microsoft/vscode-azuretools
28+
ref: main
29+
endpoint: GitHub
30+
31+
# Use those templates
32+
extends:
33+
template: azure-pipelines/jobs.yml@templates

0 commit comments

Comments
 (0)