Skip to content

Commit

Permalink
Revert "Move configurtion update to separate template file for easier…
Browse files Browse the repository at this point in the history
… maintenance"

This reverts commit 760b4dc.
  • Loading branch information
ralph-msft committed Feb 8, 2024
1 parent 760b4dc commit 10e7292
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 27 deletions.
21 changes: 18 additions & 3 deletions .azure/pipelines/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ parameters:
- None
- Aria

variables:
- group: 'Azure AI CLI Telemetry configuration'
- name: telemetry.type
# NOTE: Do NOT change the name of this variable without also updating the corresponding
# src\ai\.x\config\telemetry.config.json file. This name needs to be a JPath like
# expression to replace a specific value in that CLI telemetry JSON configuration in the
# FileTransform step in the BuildStage below
value: ${{ parameters.telemetryType }}
- name: telemetry.aria.tenantId
# NOTE: Do NOT change the name of this variable without updating the telemetry JSON config
value: $(AriaTenantId_Release)

stages:

- stage: SetupStage
Expand All @@ -48,9 +60,12 @@ stages:
AICLISemVerVersion: $[ stageDependencies.SetupStage.SetupJob.outputs['Variables.AICLISemVerVersion']]
AICLINuPkgFileName: $[ stageDependencies.SetupStage.SetupJob.outputs['Variables.AICLINuPkgFileName']]
steps:
- template: update-config.yaml
parameters:
telemetryType: ${{ parameters.telemetryType }}
- task: FileTransform@1
displayName: 'Update telemetry configuration'
inputs:
folderPath: '$(Build.SourcesDirectory)/src/ai/.x/config'
fileType: json
targetFiles: telemetry.config.json
- task: NuGetAuthenticate@1
- task: DotNetCoreCLI@2
displayName: Build
Expand Down
24 changes: 0 additions & 24 deletions .azure/pipelines/update-config.yaml

This file was deleted.

0 comments on commit 10e7292

Please sign in to comment.