Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/build/azure-pipelines/win32/product-build-win32.yml
5419 views
1
parameters:
2
- name: VSCODE_ARCH
3
type: string
4
- name: VSCODE_CIBUILD
5
type: boolean
6
- name: VSCODE_QUALITY
7
type: string
8
- name: VSCODE_RUN_ELECTRON_TESTS
9
type: boolean
10
default: false
11
- name: VSCODE_RUN_BROWSER_TESTS
12
type: boolean
13
default: false
14
- name: VSCODE_RUN_REMOTE_TESTS
15
type: boolean
16
default: false
17
18
jobs:
19
- job: Windows_${{ parameters.VSCODE_ARCH }}
20
displayName: Windows (${{ upper(parameters.VSCODE_ARCH) }})
21
timeoutInMinutes: 90
22
variables:
23
VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}
24
templateContext:
25
outputParentDirectory: $(Build.ArtifactStagingDirectory)/out
26
outputs:
27
- ${{ if or(eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true), eq(parameters.VSCODE_RUN_BROWSER_TESTS, true), eq(parameters.VSCODE_RUN_REMOTE_TESTS, true)) }}:
28
- output: pipelineArtifact
29
targetPath: $(Build.SourcesDirectory)/.build/crashes
30
artifactName: crash-dump-windows-$(VSCODE_ARCH)-$(System.JobAttempt)
31
displayName: Publish Crash Reports
32
sbomEnabled: false
33
isProduction: false
34
condition: failed()
35
- output: pipelineArtifact
36
targetPath: $(Build.SourcesDirectory)/node_modules
37
artifactName: node-modules-windows-$(VSCODE_ARCH)-$(System.JobAttempt)
38
displayName: Publish Node Modules
39
sbomEnabled: false
40
isProduction: false
41
condition: failed()
42
- output: pipelineArtifact
43
targetPath: $(Build.SourcesDirectory)/.build/logs
44
artifactName: logs-windows-$(VSCODE_ARCH)-$(System.JobAttempt)
45
displayName: Publish Log Files
46
sbomEnabled: false
47
isProduction: false
48
condition: succeededOrFailed()
49
- output: pipelineArtifact
50
targetPath: $(Build.ArtifactStagingDirectory)/out/system-setup/VSCodeSetup-$(VSCODE_ARCH)-$(VSCODE_VERSION).exe
51
artifactName: vscode_client_win32_$(VSCODE_ARCH)_setup
52
displayName: Publish system setup
53
sbomBuildDropPath: $(Agent.BuildDirectory)/VSCode-win32-$(VSCODE_ARCH)
54
sbomPackageName: "VS Code Windows $(VSCODE_ARCH) System Setup"
55
sbomPackageVersion: $(Build.SourceVersion)
56
- output: pipelineArtifact
57
targetPath: $(Build.ArtifactStagingDirectory)/out/user-setup/VSCodeUserSetup-$(VSCODE_ARCH)-$(VSCODE_VERSION).exe
58
artifactName: vscode_client_win32_$(VSCODE_ARCH)_user-setup
59
displayName: Publish user setup
60
sbomBuildDropPath: $(Agent.BuildDirectory)/VSCode-win32-$(VSCODE_ARCH)
61
sbomPackageName: "VS Code Windows $(VSCODE_ARCH) User Setup"
62
sbomPackageVersion: $(Build.SourceVersion)
63
- output: pipelineArtifact
64
targetPath: $(Build.ArtifactStagingDirectory)/out/archive/VSCode-win32-$(VSCODE_ARCH)-$(VSCODE_VERSION).zip
65
artifactName: vscode_client_win32_$(VSCODE_ARCH)_archive
66
displayName: Publish archive
67
sbomBuildDropPath: $(Agent.BuildDirectory)/VSCode-win32-$(VSCODE_ARCH)
68
sbomPackageName: "VS Code Windows $(VSCODE_ARCH)"
69
sbomPackageVersion: $(Build.SourceVersion)
70
- output: pipelineArtifact
71
targetPath: $(Build.ArtifactStagingDirectory)/out/server/vscode-server-win32-$(VSCODE_ARCH).zip
72
artifactName: vscode_server_win32_$(VSCODE_ARCH)_archive
73
displayName: Publish server archive
74
sbomBuildDropPath: $(Agent.BuildDirectory)/vscode-server-win32-$(VSCODE_ARCH)
75
sbomPackageName: "VS Code Windows $(VSCODE_ARCH) Server"
76
sbomPackageVersion: $(Build.SourceVersion)
77
- output: pipelineArtifact
78
targetPath: $(Build.ArtifactStagingDirectory)/out/web/vscode-server-win32-$(VSCODE_ARCH)-web.zip
79
artifactName: vscode_web_win32_$(VSCODE_ARCH)_archive
80
displayName: Publish web server archive
81
sbomBuildDropPath: $(Agent.BuildDirectory)/vscode-server-win32-$(VSCODE_ARCH)-web
82
sbomPackageName: "VS Code Windows $(VSCODE_ARCH) Web"
83
sbomPackageVersion: $(Build.SourceVersion)
84
sdl:
85
suppression:
86
suppressionFile: $(Build.SourcesDirectory)\.config\guardian\.gdnsuppress
87
steps:
88
- template: ./steps/product-build-win32-compile.yml@self
89
parameters:
90
VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}
91
VSCODE_CIBUILD: ${{ parameters.VSCODE_CIBUILD }}
92
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
93
VSCODE_RUN_ELECTRON_TESTS: ${{ parameters.VSCODE_RUN_ELECTRON_TESTS }}
94
VSCODE_RUN_BROWSER_TESTS: ${{ parameters.VSCODE_RUN_BROWSER_TESTS }}
95
VSCODE_RUN_REMOTE_TESTS: ${{ parameters.VSCODE_RUN_REMOTE_TESTS }}
96
97