From 854cd24d5d58f4c3d7337aa344b68c65d66fc687 Mon Sep 17 00:00:00 2001 From: Chaoyi Yuan Date: Tue, 14 Jan 2025 17:03:31 +0800 Subject: [PATCH] build: add code sign parameters and additional setup steps (#376) --- .azure-pipelines/1esmain.yml | 16 ++++++++++++++-- .azure-pipelines/release.yml | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/1esmain.yml b/.azure-pipelines/1esmain.yml index 345b8ea..8005801 100644 --- a/.azure-pipelines/1esmain.yml +++ b/.azure-pipelines/1esmain.yml @@ -28,7 +28,11 @@ parameters: - name: enableLongRunningTests displayName: Enable Long Running Tests type: boolean - default: true + default: false + - name: enableSigning + displayName: Enable Signing + type: boolean + default: false variables: # Required by MicroBuild template @@ -39,4 +43,12 @@ variables: extends: template: azure-pipelines/1esmain.yml@azExtTemplates parameters: - useAzureFederatedCredentials: ${{ parameters.enableLongRunningTests }} \ No newline at end of file + useAzureFederatedCredentials: ${{ parameters.enableLongRunningTests }} + enableSigning: ${{ parameters.enableSigning }} + additionalSetupSteps: + - pwsh: | + echo Updating aikey in package.json + (Get-Content package.json) -replace '"aikey": ".*"', '"aikey": "$(PRODUCTION_AI_KEY)"' | Set-Content package.json + displayName: Update aikey in package.json + env: + PRODUCTION_AI_KEY: $(PRODUCTION_AI_KEY) \ No newline at end of file diff --git a/.azure-pipelines/release.yml b/.azure-pipelines/release.yml index 83825e7..c0d839e 100644 --- a/.azure-pipelines/release.yml +++ b/.azure-pipelines/release.yml @@ -12,7 +12,7 @@ parameters: resources: pipelines: - pipeline: build - source: \API Catalog Tooling\VSCode\Extensions\vscode-apimanagement # CUSTOMIZE - location of the pipeline that produces the artifacts + source: \API Catalog Tooling\VSCode\Extensions\vscode-apimanagement-main # CUSTOMIZE - location of the pipeline that produces the artifacts repositories: - repository: azExtTemplates type: github