|
|
|
@ -1,32 +1,7 @@
|
|
|
|
|
steps:
|
|
|
|
|
- script: |
|
|
|
|
|
mkdir -p .build
|
|
|
|
|
echo -n $BUILD_SOURCEVERSION > .build/commit
|
|
|
|
|
echo -n $VSCODE_QUALITY > .build/quality
|
|
|
|
|
echo -n $ENABLE_TERRAPIN > .build/terrapin
|
|
|
|
|
displayName: Prepare compilation cache flags
|
|
|
|
|
|
|
|
|
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
|
|
|
|
inputs:
|
|
|
|
|
keyfile: "build/.cachesalt, .build/commit, .build/quality, .build/terrapin"
|
|
|
|
|
targetfolder: ".build, out-build, out-vscode-min, out-vscode-reh-min, out-vscode-reh-web-min"
|
|
|
|
|
vstsFeed: "npm-vscode"
|
|
|
|
|
platformIndependent: true
|
|
|
|
|
alias: "Compilation"
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
exit 1
|
|
|
|
|
displayName: Check RestoreCache
|
|
|
|
|
condition: and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true'))
|
|
|
|
|
|
|
|
|
|
- task: NodeTool@0
|
|
|
|
|
inputs:
|
|
|
|
|
versionSpec: "12.14.1"
|
|
|
|
|
|
|
|
|
|
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
|
|
|
|
|
inputs:
|
|
|
|
|
versionSpec: "1.x"
|
|
|
|
|
versionSpec: "12.18.3"
|
|
|
|
|
|
|
|
|
|
- task: AzureKeyVault@1
|
|
|
|
|
displayName: "Azure Key Vault: Get Secrets"
|
|
|
|
@ -34,9 +9,21 @@ steps:
|
|
|
|
|
azureSubscription: "vscode-builds-subscription"
|
|
|
|
|
KeyVaultName: vscode
|
|
|
|
|
|
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
|
|
|
inputs:
|
|
|
|
|
artifact: Compilation
|
|
|
|
|
path: $(Build.ArtifactStagingDirectory)
|
|
|
|
|
displayName: Download compilation output
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_ARCH'], 'universal'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
tar -xzf $(Build.ArtifactStagingDirectory)/compilation.tar.gz
|
|
|
|
|
displayName: Extract compilation output
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_ARCH'], 'universal'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
cat << EOF > ~/.netrc
|
|
|
|
|
machine github.com
|
|
|
|
|
login vscode
|
|
|
|
@ -55,40 +42,45 @@ steps:
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
git remote add distro "https://github.com/$(VSCODE_MIXIN_REPO).git"
|
|
|
|
|
git fetch distro
|
|
|
|
|
git merge $(node -p "require('./package.json').distro")
|
|
|
|
|
git pull --no-rebase https://github.com/$(VSCODE_MIXIN_REPO).git $(node -p "require('./package.json').distro")
|
|
|
|
|
displayName: Merge distro
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
npx https://aka.ms/enablesecurefeed standAlone
|
|
|
|
|
displayName: Switch to Terrapin packages
|
|
|
|
|
timeoutInMinutes: 5
|
|
|
|
|
condition: and(succeeded(), eq(variables['ENABLE_TERRAPIN'], 'true'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
echo -n $(VSCODE_ARCH) > .build/arch
|
|
|
|
|
mkdir -p .build
|
|
|
|
|
node build/azure-pipelines/common/computeNodeModulesCacheKey.js $VSCODE_ARCH $ENABLE_TERRAPIN > .build/yarnlockhash
|
|
|
|
|
displayName: Prepare yarn cache flags
|
|
|
|
|
|
|
|
|
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
|
|
|
|
- task: Cache@2
|
|
|
|
|
inputs:
|
|
|
|
|
keyfile: ".build/arch, .build/terrapin, build/.cachesalt, .yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock"
|
|
|
|
|
targetfolder: "**/node_modules, !**/node_modules/**/node_modules"
|
|
|
|
|
vstsFeed: "npm-vscode"
|
|
|
|
|
key: 'nodeModules | $(Agent.OS) | .build/yarnlockhash'
|
|
|
|
|
path: .build/node_modules_cache
|
|
|
|
|
cacheHitVar: NODE_MODULES_RESTORED
|
|
|
|
|
displayName: Restore node_modules cache
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
npm install -g node-gyp@7.1.0
|
|
|
|
|
tar -xzf .build/node_modules_cache/cache.tgz
|
|
|
|
|
condition: and(succeeded(), eq(variables.NODE_MODULES_RESTORED, 'true'))
|
|
|
|
|
displayName: Extract node_modules cache
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
npm install -g node-gyp@latest
|
|
|
|
|
node-gyp --version
|
|
|
|
|
displayName: Update node-gyp
|
|
|
|
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
|
|
|
|
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
npx https://aka.ms/enablesecurefeed standAlone
|
|
|
|
|
timeoutInMinutes: 5
|
|
|
|
|
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'), eq(variables['ENABLE_TERRAPIN'], 'true'))
|
|
|
|
|
displayName: Switch to Terrapin packages
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
export npm_config_arch=$(VSCODE_ARCH)
|
|
|
|
|
export npm_config_node_gyp=$(which node-gyp)
|
|
|
|
|
export SDKROOT=/Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk
|
|
|
|
|
export CHILD_CONCURRENCY="1"
|
|
|
|
|
|
|
|
|
|
for i in {1..3}; do # try 3 times, for Terrapin
|
|
|
|
|
yarn --frozen-lockfile && break
|
|
|
|
@ -98,25 +90,19 @@ steps:
|
|
|
|
|
fi
|
|
|
|
|
echo "Yarn failed $i, trying again..."
|
|
|
|
|
done
|
|
|
|
|
env:
|
|
|
|
|
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
|
displayName: Install dependencies
|
|
|
|
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
|
|
|
|
|
|
|
|
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
|
|
|
|
|
inputs:
|
|
|
|
|
keyfile: ".build/arch, .build/terrapin, build/.cachesalt, .yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock"
|
|
|
|
|
targetfolder: "**/node_modules, !**/node_modules/**/node_modules"
|
|
|
|
|
vstsFeed: "npm-vscode"
|
|
|
|
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
|
|
|
|
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
export npm_config_arch=$(VSCODE_ARCH)
|
|
|
|
|
export npm_config_node_gyp=$(which node-gyp)
|
|
|
|
|
export SDKROOT=/Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk
|
|
|
|
|
ls /Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
|
|
|
|
|
yarn postinstall
|
|
|
|
|
displayName: Run postinstall scripts
|
|
|
|
|
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
|
|
|
|
|
node build/azure-pipelines/common/listNodeModules.js .build/node_modules_list.txt
|
|
|
|
|
mkdir -p .build/node_modules_cache
|
|
|
|
|
tar -czf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
|
|
|
|
|
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
|
|
|
|
|
displayName: Create node_modules archive
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
@ -126,10 +112,21 @@ steps:
|
|
|
|
|
export SDKROOT=/Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk
|
|
|
|
|
ls /Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
|
|
|
|
|
yarn electron-rebuild
|
|
|
|
|
# remove once https://github.com/prebuild/prebuild-install/pull/140 is merged and found in keytar
|
|
|
|
|
cd ./node_modules/keytar
|
|
|
|
|
node-gyp rebuild
|
|
|
|
|
displayName: Rebuild native modules for ARM64
|
|
|
|
|
condition: eq(variables['VSCODE_ARCH'], 'arm64')
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'arm64'))
|
|
|
|
|
|
|
|
|
|
- download: current
|
|
|
|
|
artifact: vscode-darwin-x64
|
|
|
|
|
displayName: Download x64 artifact
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'universal'))
|
|
|
|
|
|
|
|
|
|
- download: current
|
|
|
|
|
artifact: vscode-darwin-arm64
|
|
|
|
|
displayName: Download arm64 artifact
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'universal'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
@ -141,6 +138,7 @@ steps:
|
|
|
|
|
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
|
|
|
|
|
yarn gulp vscode-darwin-$(VSCODE_ARCH)-min-ci
|
|
|
|
|
displayName: Build
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_ARCH'], 'universal'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
@ -148,14 +146,23 @@ steps:
|
|
|
|
|
yarn gulp vscode-reh-darwin-min-ci
|
|
|
|
|
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
|
|
|
|
|
yarn gulp vscode-reh-web-darwin-min-ci
|
|
|
|
|
displayName: Build reh
|
|
|
|
|
displayName: Build Server
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
yarn electron $(VSCODE_ARCH)
|
|
|
|
|
displayName: Download Electron
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
unzip $(Pipeline.Workspace)/vscode-darwin-x64/VSCode-darwin-x64.zip -d $(agent.builddirectory)/vscode-x64
|
|
|
|
|
unzip $(Pipeline.Workspace)/vscode-darwin-arm64/VSCode-darwin-arm64.zip -d $(agent.builddirectory)/vscode-arm64
|
|
|
|
|
DEBUG=* node build/darwin/create-universal-app.js
|
|
|
|
|
displayName: Create Universal App
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'universal'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
|
|
|
|
|
yarn npm-run-all -lp "electron $(VSCODE_ARCH)" "playwright-install"
|
|
|
|
|
displayName: Download Electron and Playwright
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_ARCH'], 'universal'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
@ -167,17 +174,26 @@ steps:
|
|
|
|
|
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k pwd $(agent.tempdirectory)/buildagent.keychain
|
|
|
|
|
VSCODE_ARCH="$(VSCODE_ARCH)" DEBUG=electron-osx-sign* node build/darwin/sign.js
|
|
|
|
|
displayName: Set Hardened Entitlements
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
./scripts/test.sh --build --tfs "Unit Tests"
|
|
|
|
|
displayName: Run unit tests (Electron)
|
|
|
|
|
timeoutInMinutes: 5
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
yarn test-browser --build --browser chromium --browser webkit --browser firefox --tfs "Browser Unit Tests"
|
|
|
|
|
displayName: Run unit tests (Browser)
|
|
|
|
|
timeoutInMinutes: 5
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
yarn --cwd test/integration/browser compile
|
|
|
|
|
displayName: Compile integration tests
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
@ -191,13 +207,15 @@ steps:
|
|
|
|
|
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-darwin" \
|
|
|
|
|
./scripts/test-integration.sh --build --tfs "Integration Tests"
|
|
|
|
|
displayName: Run integration tests (Electron)
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
timeoutInMinutes: 5
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-web-darwin" \
|
|
|
|
|
./resources/server/test/test-web-integration.sh --browser webkit
|
|
|
|
|
displayName: Run integration tests (Browser)
|
|
|
|
|
timeoutInMinutes: 5
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
@ -208,22 +226,29 @@ steps:
|
|
|
|
|
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-darwin" \
|
|
|
|
|
./resources/server/test/test-remote-integration.sh
|
|
|
|
|
displayName: Run remote integration tests (Electron)
|
|
|
|
|
timeoutInMinutes: 5
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
yarn --cwd test/smoke compile
|
|
|
|
|
displayName: Compile smoke tests
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
APP_ROOT=$(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)
|
|
|
|
|
APP_NAME="`ls $APP_ROOT | head -n 1`"
|
|
|
|
|
yarn smoketest --build "$APP_ROOT/$APP_NAME"
|
|
|
|
|
continueOnError: true
|
|
|
|
|
yarn smoketest-no-compile --build "$APP_ROOT/$APP_NAME"
|
|
|
|
|
timeoutInMinutes: 5
|
|
|
|
|
displayName: Run smoke tests (Electron)
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-web-darwin" \
|
|
|
|
|
yarn smoketest --web --headless
|
|
|
|
|
continueOnError: true
|
|
|
|
|
yarn smoketest-no-compile --web --headless
|
|
|
|
|
timeoutInMinutes: 5
|
|
|
|
|
displayName: Run smoke tests (Browser)
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
@ -240,12 +265,13 @@ steps:
|
|
|
|
|
inputs:
|
|
|
|
|
testResultsFiles: "*-results.xml"
|
|
|
|
|
searchFolder: "$(Build.ArtifactStagingDirectory)/test-results"
|
|
|
|
|
condition: succeededOrFailed()
|
|
|
|
|
condition: and(succeededOrFailed(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
|
pushd $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH) && zip -r -X -y $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH).zip * && popd
|
|
|
|
|
displayName: Archive build
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
|
|
|
|
|
inputs:
|
|
|
|
@ -270,10 +296,12 @@ steps:
|
|
|
|
|
]
|
|
|
|
|
SessionTimeout: 60
|
|
|
|
|
displayName: Codesign
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
zip -d $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH).zip "*.pkg"
|
|
|
|
|
displayName: Clean Archive
|
|
|
|
|
displayName: Clean
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
APP_ROOT=$(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)
|
|
|
|
@ -281,6 +309,7 @@ steps:
|
|
|
|
|
BUNDLE_IDENTIFIER=$(node -p "require(\"$APP_ROOT/$APP_NAME/Contents/Resources/app/product.json\").darwinBundleIdentifier")
|
|
|
|
|
echo "##vso[task.setvariable variable=BundleIdentifier]$BUNDLE_IDENTIFIER"
|
|
|
|
|
displayName: Export bundle identifier
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
|
|
|
|
|
inputs:
|
|
|
|
@ -305,6 +334,7 @@ steps:
|
|
|
|
|
]
|
|
|
|
|
SessionTimeout: 60
|
|
|
|
|
displayName: Notarization
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
@ -312,7 +342,7 @@ steps:
|
|
|
|
|
APP_NAME="`ls $APP_ROOT | head -n 1`"
|
|
|
|
|
"$APP_ROOT/$APP_NAME/Contents/Resources/app/bin/code" --export-default-configuration=.build
|
|
|
|
|
displayName: Verify start after signing (export configuration)
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'))
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_ARCH'], 'arm64'), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
set -e
|
|
|
|
@ -323,13 +353,29 @@ steps:
|
|
|
|
|
VSCODE_ARCH="$(VSCODE_ARCH)" \
|
|
|
|
|
./build/azure-pipelines/darwin/publish.sh
|
|
|
|
|
displayName: Publish
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- publish: $(Agent.BuildDirectory)/VSCode-darwin-$(VSCODE_ARCH).zip
|
|
|
|
|
artifact: vscode-darwin-$(VSCODE_ARCH)
|
|
|
|
|
displayName: Publish archive
|
|
|
|
|
condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- publish: $(Agent.BuildDirectory)/vscode-server-darwin.zip
|
|
|
|
|
artifact: vscode-server-darwin-$(VSCODE_ARCH)
|
|
|
|
|
displayName: Publish server archive
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- publish: $(Agent.BuildDirectory)/vscode-server-darwin-web.zip
|
|
|
|
|
artifact: vscode-server-darwin-$(VSCODE_ARCH)-web
|
|
|
|
|
displayName: Publish web server archive
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
AZURE_STORAGE_ACCESS_KEY="$(ticino-storage-key)" \
|
|
|
|
|
VSCODE_ARCH="$(VSCODE_ARCH)" \
|
|
|
|
|
yarn gulp upload-vscode-configuration
|
|
|
|
|
displayName: Upload configuration (for Bing settings search)
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'))
|
|
|
|
|
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), ne(variables['VSCODE_PUBLISH'], 'false'))
|
|
|
|
|
continueOnError: true
|
|
|
|
|
|
|
|
|
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
|
|
|
|