diff --git a/build/azure-pipelines/darwin/product-build-darwin.yml b/build/azure-pipelines/darwin/product-build-darwin.yml index b6f64d1e8b2..375da9de1b7 100644 --- a/build/azure-pipelines/darwin/product-build-darwin.yml +++ b/build/azure-pipelines/darwin/product-build-darwin.yml @@ -341,26 +341,26 @@ steps: condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), ne(variables['VSCODE_PUBLISH'], 'false')) continueOnError: true - # - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 - # displayName: Generate SBOM (client) - # inputs: - # BuildDropPath: $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH) - # PackageName: Visual Studio Code - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), ne(variables['VSCODE_ARCH'], 'universal')) + - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 + displayName: Generate SBOM (client) + inputs: + BuildDropPath: $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH) + PackageName: Visual Studio Code + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), ne(variables['VSCODE_ARCH'], 'universal')) - # - publish: $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)/_manifest - # displayName: Publish SBOM (client) - # artifact: vscode_client_darwin_$(VSCODE_ARCH)_sbom - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), ne(variables['VSCODE_ARCH'], 'universal')) + - publish: $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)/_manifest + displayName: Publish SBOM (client) + artifact: vscode_client_darwin_$(VSCODE_ARCH)_sbom + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), ne(variables['VSCODE_ARCH'], 'universal')) - # - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 - # displayName: Generate SBOM (server) - # inputs: - # BuildDropPath: $(agent.builddirectory)/vscode-server-darwin - # PackageName: Visual Studio Code Server - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), eq(variables['VSCODE_ARCH'], 'x64')) + - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 + displayName: Generate SBOM (server) + inputs: + BuildDropPath: $(agent.builddirectory)/vscode-server-darwin + PackageName: Visual Studio Code Server + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), eq(variables['VSCODE_ARCH'], 'x64')) - # - publish: $(agent.builddirectory)/vscode-server-darwin/_manifest - # displayName: Publish SBOM (server) - # artifact: vscode_server_darwin_$(VSCODE_ARCH)_sbom - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), eq(variables['VSCODE_ARCH'], 'x64')) + - publish: $(agent.builddirectory)/vscode-server-darwin/_manifest + displayName: Publish SBOM (server) + artifact: vscode_server_darwin_$(VSCODE_ARCH)_sbom + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), eq(variables['VSCODE_ARCH'], 'x64')) diff --git a/build/azure-pipelines/linux/product-build-linux-client.yml b/build/azure-pipelines/linux/product-build-linux-client.yml index eec646eb697..3e2e56bf20c 100644 --- a/build/azure-pipelines/linux/product-build-linux-client.yml +++ b/build/azure-pipelines/linux/product-build-linux-client.yml @@ -358,26 +358,26 @@ steps: targetPath: .build/linux/snap-tarball condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) - # - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 - # displayName: Generate SBOM (client) - # inputs: - # BuildDropPath: $(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH) - # PackageName: Visual Studio Code - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) + - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 + displayName: Generate SBOM (client) + inputs: + BuildDropPath: $(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH) + PackageName: Visual Studio Code + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) - # - publish: $(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)/_manifest - # displayName: Publish SBOM (client) - # artifact: vscode_client_linux_$(VSCODE_ARCH)_sbom - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) + - publish: $(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)/_manifest + displayName: Publish SBOM (client) + artifact: vscode_client_linux_$(VSCODE_ARCH)_sbom + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) - # - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 - # displayName: Generate SBOM (server) - # inputs: - # BuildDropPath: $(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH) - # PackageName: Visual Studio Code Server - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) + - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 + displayName: Generate SBOM (server) + inputs: + BuildDropPath: $(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH) + PackageName: Visual Studio Code Server + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) - # - publish: $(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH)/_manifest - # displayName: Publish SBOM (server) - # artifact: vscode_server_linux_$(VSCODE_ARCH)_sbom - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) + - publish: $(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH)/_manifest + displayName: Publish SBOM (server) + artifact: vscode_server_linux_$(VSCODE_ARCH)_sbom + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) diff --git a/build/azure-pipelines/product-publish.ps1 b/build/azure-pipelines/product-publish.ps1 index 339002ab0c1..17b02f6aff5 100644 --- a/build/azure-pipelines/product-publish.ps1 +++ b/build/azure-pipelines/product-publish.ps1 @@ -15,7 +15,7 @@ function Get-PipelineArtifact { return } - $res.value | Where-Object { $_.name -Like $Name } + $res.value | Where-Object { $_.name -Like $Name -and $_.name -NotLike "*sbom" } } catch { Write-Warning $_ } diff --git a/build/azure-pipelines/win32/product-build-win32.yml b/build/azure-pipelines/win32/product-build-win32.yml index 5f4ccb665a0..6b01f69344b 100644 --- a/build/azure-pipelines/win32/product-build-win32.yml +++ b/build/azure-pipelines/win32/product-build-win32.yml @@ -353,26 +353,26 @@ steps: displayName: Publish web server archive condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), ne(variables['VSCODE_ARCH'], 'arm64')) - # - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 - # displayName: Generate SBOM (client) - # inputs: - # BuildDropPath: $(agent.builddirectory)/VSCode-win32-$(VSCODE_ARCH) - # PackageName: Visual Studio Code - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) + - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 + displayName: Generate SBOM (client) + inputs: + BuildDropPath: $(agent.builddirectory)/VSCode-win32-$(VSCODE_ARCH) + PackageName: Visual Studio Code + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) - # - publish: $(agent.builddirectory)/VSCode-win32-$(VSCODE_ARCH)/_manifest - # displayName: Publish SBOM (client) - # artifact: vscode_client_win32_$(VSCODE_ARCH)_sbom - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) + - publish: $(agent.builddirectory)/VSCode-win32-$(VSCODE_ARCH)/_manifest + displayName: Publish SBOM (client) + artifact: vscode_client_win32_$(VSCODE_ARCH)_sbom + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false')) - # - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 - # displayName: Generate SBOM (server) - # inputs: - # BuildDropPath: $(agent.builddirectory)/vscode-server-win32-$(VSCODE_ARCH) - # PackageName: Visual Studio Code Server - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), ne(variables['VSCODE_ARCH'], 'arm64')) + - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 + displayName: Generate SBOM (server) + inputs: + BuildDropPath: $(agent.builddirectory)/vscode-server-win32-$(VSCODE_ARCH) + PackageName: Visual Studio Code Server + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), ne(variables['VSCODE_ARCH'], 'arm64')) - # - publish: $(agent.builddirectory)/vscode-server-win32-$(VSCODE_ARCH)/_manifest - # displayName: Publish SBOM (server) - # artifact: vscode_server_win32_$(VSCODE_ARCH)_sbom - # condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), ne(variables['VSCODE_ARCH'], 'arm64')) + - publish: $(agent.builddirectory)/vscode-server-win32-$(VSCODE_ARCH)/_manifest + displayName: Publish SBOM (server) + artifact: vscode_server_win32_$(VSCODE_ARCH)_sbom + condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), ne(variables['VSCODE_ARCH'], 'arm64'))