Skip to content

Commit b9473e8

Browse files
authored
Convert CI Build to 1ES Pipeline (#760)
* convert the ci build to 1ES templates, remove explicit credscan job in favor of SDL Sources stage
1 parent 34a79c5 commit b9473e8

File tree

1 file changed

+25
-46
lines changed

1 file changed

+25
-46
lines changed

.azure-pipelines.yml

Lines changed: 25 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,28 @@ variables:
66
NODE_OPTIONS: '--max-old-space-size=8192'
77
Codeql.Enabled: true
88

9-
jobs:
10-
- job: 'Build'
11-
pool:
12-
name: 'azsdk-pool-mms-ubuntu-2204-general'
13-
vmImage: 'ubuntu-22.04'
14-
15-
steps:
16-
- template: azure-pipelines/common-build.yml
17-
18-
- script: 'node common/scripts/install-run-rush.js lint'
19-
displayName: 'rush lint'
20-
21-
- script: 'node common/scripts/install-run-rush.js test'
22-
displayName: 'rush test'
23-
24-
- script: 'node common/scripts/install-run-rush.js regen-ruleindex'
25-
displayName: 'rush regen-ruleindex'
26-
27-
- job: Windows
28-
displayName: credentialScan
29-
pool:
30-
name: azsdk-pool-mms-win-2022-general
31-
vmImage: windows-2022
32-
33-
steps:
34-
- task: ea576cd4-c61f-48f8-97e7-a3cb07b90a6f@2 # CredScan@2
35-
inputs:
36-
toolMajorVersion: 'V2'
37-
38-
- task: f5679091-e6da-4974-a8dc-0eec03a8ea63@1 # PostAnalysis@1
39-
inputs:
40-
AllTools: false
41-
APIScan: false
42-
BinSkim: false
43-
CodesignValidation: false
44-
CredScan: true
45-
FortifySCA: false
46-
FxCop: false
47-
ModernCop: false
48-
PoliCheck: false
49-
RoslynAnalyzers: false
50-
SDLNativeRules: false
51-
Semmle: false
52-
TSLint: false
53-
ToolLogsNotFoundAction: 'Standard'
54-
9+
extends:
10+
template: /azure-pipelines/1es-redirect.yml
11+
parameters:
12+
stages:
13+
- stage: Build
14+
displayName: Build and Test
15+
16+
jobs:
17+
- job: 'Build'
18+
pool:
19+
name: 'azsdk-pool-mms-ubuntu-2204-general'
20+
image: ' azsdk-pool-mms-ubuntu-2204-1espt'
21+
os: linux
22+
23+
steps:
24+
- template: /azure-pipelines/common-build.yml
25+
26+
- script: 'node common/scripts/install-run-rush.js lint'
27+
displayName: 'rush lint'
28+
29+
- script: 'node common/scripts/install-run-rush.js test'
30+
displayName: 'rush test'
31+
32+
- script: 'node common/scripts/install-run-rush.js regen-ruleindex'
33+
displayName: 'rush regen-ruleindex'

0 commit comments

Comments
 (0)