Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/build/azure-pipelines/linux/product-build-linux.yml
5310 views
1
parameters:
2
- name: NPM_ARCH
3
type: string
4
- name: VSCODE_ARCH
5
type: string
6
- name: VSCODE_CIBUILD
7
type: boolean
8
- name: VSCODE_QUALITY
9
type: string
10
- name: VSCODE_BUILD_LINUX_SNAP
11
type: boolean
12
default: false
13
- name: VSCODE_RUN_ELECTRON_TESTS
14
type: boolean
15
default: false
16
- name: VSCODE_RUN_BROWSER_TESTS
17
type: boolean
18
default: false
19
- name: VSCODE_RUN_REMOTE_TESTS
20
type: boolean
21
default: false
22
23
jobs:
24
- job: Linux_${{ parameters.VSCODE_ARCH }}
25
displayName: Linux (${{ upper(parameters.VSCODE_ARCH) }})
26
timeoutInMinutes: 90
27
variables:
28
DISPLAY: ":10"
29
NPM_ARCH: ${{ parameters.NPM_ARCH }}
30
VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}
31
templateContext:
32
sdl:
33
binskim:
34
analyzeTargetGlob: '$(Agent.BuildDirectory)/VSCode-linux-$(VSCODE_ARCH)/**/*.node;$(Agent.BuildDirectory)/vscode-server-linux-$(VSCODE_ARCH)/**/*.node;$(Agent.BuildDirectory)/vscode-server-linux-$(VSCODE_ARCH)-web/**/*.node'
35
preReleaseVersion: '4.3.1'
36
outputParentDirectory: $(Build.ArtifactStagingDirectory)/out
37
outputs:
38
- ${{ if or(eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true), eq(parameters.VSCODE_RUN_BROWSER_TESTS, true), eq(parameters.VSCODE_RUN_REMOTE_TESTS, true)) }}:
39
- output: pipelineArtifact
40
targetPath: $(Build.SourcesDirectory)/.build/crashes
41
artifactName: crash-dump-linux-$(VSCODE_ARCH)-$(System.JobAttempt)
42
displayName: Publish Crash Reports
43
sbomEnabled: false
44
isProduction: false
45
condition: failed()
46
- output: pipelineArtifact
47
targetPath: $(Build.SourcesDirectory)/node_modules
48
artifactName: node-modules-linux-$(VSCODE_ARCH)-$(System.JobAttempt)
49
displayName: Publish Node Modules
50
sbomEnabled: false
51
isProduction: false
52
condition: failed()
53
- output: pipelineArtifact
54
targetPath: $(Build.SourcesDirectory)/.build/logs
55
artifactName: logs-linux-$(VSCODE_ARCH)-$(System.JobAttempt)
56
displayName: Publish Log Files
57
sbomEnabled: false
58
isProduction: false
59
condition: succeededOrFailed()
60
- output: pipelineArtifact
61
targetPath: $(Build.ArtifactStagingDirectory)/out/client/$(CLIENT_ARCHIVE_NAME)
62
artifactName: vscode_client_linux_$(VSCODE_ARCH)_archive-unsigned
63
displayName: Publish client archive
64
sbomBuildDropPath: $(Agent.BuildDirectory)/VSCode-linux-$(VSCODE_ARCH)
65
sbomPackageName: "VS Code Linux $(VSCODE_ARCH) (unsigned)"
66
sbomPackageVersion: $(Build.SourceVersion)
67
- output: pipelineArtifact
68
targetPath: $(Build.ArtifactStagingDirectory)/out/server/vscode-server-linux-$(VSCODE_ARCH).tar.gz
69
artifactName: vscode_server_linux_$(VSCODE_ARCH)_archive-unsigned
70
displayName: Publish server archive
71
sbomBuildDropPath: $(Agent.BuildDirectory)/vscode-server-linux-$(VSCODE_ARCH)
72
sbomPackageName: "VS Code Linux $(VSCODE_ARCH) Server"
73
sbomPackageVersion: $(Build.SourceVersion)
74
- output: pipelineArtifact
75
targetPath: $(Build.ArtifactStagingDirectory)/out/web/vscode-server-linux-$(VSCODE_ARCH)-web.tar.gz
76
artifactName: vscode_web_linux_$(VSCODE_ARCH)_archive-unsigned
77
displayName: Publish web server archive
78
sbomBuildDropPath: $(Agent.BuildDirectory)/vscode-server-linux-$(VSCODE_ARCH)-web
79
sbomPackageName: "VS Code Linux $(VSCODE_ARCH) Web"
80
sbomPackageVersion: $(Build.SourceVersion)
81
- output: pipelineArtifact
82
targetPath: $(Build.ArtifactStagingDirectory)/out/deb/$(DEB_PACKAGE_NAME)
83
artifactName: vscode_client_linux_$(VSCODE_ARCH)_deb-package
84
displayName: Publish deb package
85
sbomBuildDropPath: .build/linux/deb
86
sbomPackageName: "VS Code Linux $(VSCODE_ARCH) DEB"
87
sbomPackageVersion: $(Build.SourceVersion)
88
- output: pipelineArtifact
89
targetPath: $(Build.ArtifactStagingDirectory)/out/rpm/$(RPM_PACKAGE_NAME)
90
artifactName: vscode_client_linux_$(VSCODE_ARCH)_rpm-package
91
displayName: Publish rpm package
92
sbomBuildDropPath: .build/linux/rpm
93
sbomPackageName: "VS Code Linux $(VSCODE_ARCH) RPM"
94
sbomPackageVersion: $(Build.SourceVersion)
95
- ${{ if eq(parameters.VSCODE_BUILD_LINUX_SNAP, true) }}:
96
- output: pipelineArtifact
97
targetPath: $(Build.ArtifactStagingDirectory)/out/snap/$(SNAP_PACKAGE_NAME)
98
artifactName: vscode_client_linux_$(VSCODE_ARCH)_snap
99
displayName: Publish snap package
100
sbomBuildDropPath: $(SNAP_EXTRACTED_PATH)
101
sbomPackageName: "VS Code Linux $(VSCODE_ARCH) SNAP"
102
sbomPackageVersion: $(Build.SourceVersion)
103
steps:
104
- template: ./steps/product-build-linux-compile.yml@self
105
parameters:
106
VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}
107
VSCODE_CIBUILD: ${{ parameters.VSCODE_CIBUILD }}
108
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
109
VSCODE_BUILD_LINUX_SNAP: ${{ parameters.VSCODE_BUILD_LINUX_SNAP }}
110
VSCODE_RUN_ELECTRON_TESTS: ${{ parameters.VSCODE_RUN_ELECTRON_TESTS }}
111
VSCODE_RUN_BROWSER_TESTS: ${{ parameters.VSCODE_RUN_BROWSER_TESTS }}
112
VSCODE_RUN_REMOTE_TESTS: ${{ parameters.VSCODE_RUN_REMOTE_TESTS }}
113
114