Skip to content

Commit 26c5752

Browse files
committed
Fix SA password issue.
1 parent adab3a7 commit 26c5752

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

eng/pipelines/pr/jobs/test-sqlclientmanual-job.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888

8989
variables:
9090
# Bring the generated SA password from the secrets stage into scope for this test stage.
91+
# Note: Because this is set at runtime, it must be referenced as `$(saPassword)`.
9192
- name: saPassword
9293
value: $[stageDependencies.${{ parameters.stageNameSecrets }}.secrets_job.outputs['SaPassword.Value']]
9394

@@ -102,12 +103,12 @@ jobs:
102103
parameters:
103104
fileStreamDirectory: ${{ parameters.fileStreamDirectory }}
104105
operatingSystem: ${{ parameters.platformOperatingSystem }}
105-
saPassword: ${{ variables.saPassword }}
106+
saPassword: $(saPassword)
106107

107108
# Assign the generated SA password to the $Password field. This will allow $(Password) to be
108-
# be replaced in connection strings with whatever was passed in as ${{ saPassword }}.
109+
# be replaced in connection strings with whatever set in the secrets stage.
109110
- pwsh: |
110-
$password = "${{ variables.saPassword }}"
111+
$password = "$(variables.saPassword)"
111112
Write-Host "##vso[task.setvariable variable=Password;isSecret=true]$password"
112113
displayName: Set Connection String Password
113114

0 commit comments

Comments
 (0)