We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f60411 commit e8e4d55Copy full SHA for e8e4d55
1 file changed
.Pipelines/template-pipeline-stages.yml
@@ -152,11 +152,17 @@ stages:
152
153
- bash: |
154
set -euo pipefail
155
+ if [ -z "${LAB_AUTH_B64:-}" ]; then
156
+ echo "##vso[task.logissue type=error]LabAuth secret is empty or was not injected — Key Vault retrieval may have failed."
157
+ exit 1
158
+ fi
159
CERT_PATH="$(Agent.TempDirectory)/lab-auth.pfx"
- printf '%s' "$(LabAuth)" | base64 -d > "$CERT_PATH"
160
+ printf '%s' "$LAB_AUTH_B64" | base64 -d > "$CERT_PATH"
161
echo "##vso[task.setvariable variable=LAB_APP_CLIENT_CERT_PFX_PATH]$CERT_PATH"
162
echo "Lab cert written to: $CERT_PATH ($(wc -c < "$CERT_PATH") bytes)"
163
displayName: 'Write lab certificate to disk'
164
+ env:
165
+ LAB_AUTH_B64: $(LabAuth)
166
167
- task: UsePythonVersion@0
168
inputs:
0 commit comments