cherry picked pipeline changes

This commit is contained in:
SteVen Batten 2023-02-23 13:38:01 -08:00
Родитель c17f3e6fa1
Коммит a029b38fcb
Не найден ключ, соответствующий данной подписи
5 изменённых файлов: 13 добавлений и 23 удалений

Просмотреть файл

@ -25,15 +25,9 @@ resources:
branches:
- main
- pipeline: vscode-website-prod
source: vscode-website (official)
trigger:
branches:
- prod
variables:
LinuxContainerImage: "onebranch.azurecr.io/linux/ubuntu-2004:latest"
WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2019/vse2022:latest'
extends:
template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates

Просмотреть файл

@ -26,7 +26,7 @@ resources:
- prod
variables:
LinuxContainerImage: "onebranch.azurecr.io/linux/ubuntu-2004:latest"
WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2019/vse2022:latest'
Codeql.enabled: true
Codeql.SourceRoot: $(Pipeline.Workspace)/vscode-website
Codeql.TSAEnabled: true

Просмотреть файл

@ -8,7 +8,7 @@ jobs:
- job:
displayName: ${{ parameters.jobDisplayName }}
pool:
type: linux
type: windows
variables:
ob_outputDirectory: '$(Pipeline.Workspace)/vscode-website/dist'
@ -38,23 +38,24 @@ jobs:
versionFilePath: $(Pipeline.Workspace)/vscode-website/.nvmrc
checkLatest: true
- task: npmAuthenticate@0
displayName: Setup NPM Authentication
inputs:
workingFile: $(Pipeline.Workspace)/vscode-website/server/.npmrc
customEndpoint: website npm feed
- script: npm install
displayName: Install dependencies
workingDirectory: $(Pipeline.Workspace)/vscode-website
- pwsh: $(Pipeline.Workspace)/vscode-website/scripts/ci-build-dist-setup.ps1
- powershell: $(Pipeline.Workspace)/vscode-website/scripts/ci-build-dist-setup.ps1
displayName: Build Dist Setup
workingDirectory: $(Pipeline.Workspace)/vscode-website
- pwsh: $(Pipeline.Workspace)/vscode-website/scripts/ci-build-artifact-from-website.ps1
- powershell: $(Pipeline.Workspace)/vscode-website/scripts/ci-build-artifact-from-website.ps1
displayName: Rebuild Dist From Website
workingDirectory: $(Pipeline.Workspace)/vscode-website
- task: npmAuthenticate@0
inputs:
workingFile: $(Pipeline.Workspace)/vscode-website/server/.npmrc
displayName: Setup NPM Authentication
- script: npm install
displayName: Install Dist dependencies
workingDirectory: $(Pipeline.Workspace)/vscode-website/dist

Просмотреть файл

@ -3,10 +3,5 @@ stages:
jobs:
- template: ..\jobs\build.yml
parameters:
jobDisplayName: vscode-ppe
jobDisplayName: vscode-site-vnext
artifactName: vscode-website-main
- template: ..\jobs\build.yml
parameters:
jobDisplayName: vscode-docs-vnext
artifactName: vscode-website-prod

Просмотреть файл

@ -3,5 +3,5 @@ stages:
jobs:
- template: ..\jobs\build.yml
parameters:
jobDisplayName: vscode
jobDisplayName: vscode-site-prod
artifactName: vscode-website-prod