Create a custom Air-Gapped Cloud Build (#24595)

* initial commit with new build step for agc

* add mixin agc step

* add commit hash
This commit is contained in:
Christopher Suh
2023-10-05 10:26:41 -07:00
committed by GitHub
parent 8f232ae3e8
commit 05b6593f58

View File

@@ -51,6 +51,13 @@ steps:
git merge $(node -p "require('./package.json').distro")
displayName: Merge distro
- powershell: |
git remote add distro "https://github.com/$(VSCODE_MIXIN_REPO).git"
git fetch distro
git cherry-pick 51ef46d56b81ae967f3ae185661996540bf2b642
condition: eq(variables['VSCODE_QUALITY'], 'agc')
displayName: Merge AGC endpoints
- powershell: |
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
@@ -139,6 +146,19 @@ steps:
displayName: Install SAW Extensions
condition: and(succeeded(), eq(variables['VSCODE_QUALITY'], 'saw'), ne(variables['VSCODE_ARCH'], 'arm64'))
- powershell: |
# Install AGC specific extensions
$ErrorActionPreference = "Stop"
$tempFilePath = (New-TemporaryFile).FullName
$zipFilePath = $tempFilePath + ".zip"
$extensionUri = "$(agc-extensions-uri)"
$adsExtensionPath = "$(agent.builddirectory)\azuredatastudio-win32-x64\resources\app\extensions"
Invoke-WebRequest -Uri $extensionUri -OutFile $tempFilePath
Move-Item $tempFilePath $zipFilePath
Expand-Archive $zipFilePath -DestinationPath $adsExtensionPath
displayName: Install AGC Extensions
condition: and(succeeded(), eq(variables['VSCODE_QUALITY'], 'agc'), ne(variables['VSCODE_ARCH'], 'arm64'))
# - powershell: | @anthonydresser unit tests timeout never existing the node process
# . build/azure-pipelines/win32/exec.ps1
# $ErrorActionPreference = "Stop"