Skip to content

Commit 20b6369

Browse files
committed
User Story 38351: Add Debug CI runs
- Getting better diagnostics from macOS SQL Server setup step.
1 parent b862e11 commit 20b6369

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

eng/pipelines/common/templates/steps/configure-sql-server-macos-step.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ steps:
3838
# Password for the SA user (required)
3939
MSSQL_SA_PW=${{ parameters.password }}
4040
41-
echo Parameter: ${{ parameters.password }}
42-
echo Password: $MSSQL_SA_PW
41+
echo Password Parameter: ${{ parameters.password }} >> $SQLCMD_ERRORS
42+
echo Password Variable: $MSSQL_SA_PW >> $SQLCMD_ERRORS
4343
4444
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=$MSSQL_SA_PW" -p 1433:1433 -p 1434:1434 --name sql1 --hostname sql1 -d mcr.microsoft.com/mssql/server:2022-latest
4545
@@ -54,9 +54,7 @@ steps:
5454
do
5555
echo "Waiting for SQL Server to start (attempt #$counter)..."
5656
sleep 3
57-
cmd="sqlcmd -S 127.0.0.1 -No -U sa -P \"$MSSQL_SA_PW\" -Q \"SELECT @@VERSION\""
58-
echo "$cmd" >> $SQLCMD_ERRORS
59-
$cmd >> $SQLCMD_ERRORS 2>&1
57+
sqlcmd -S 127.0.0.1 -No -U sa -P $MSSQL_SA_PW -Q "SELECT @@VERSION" >> $SQLCMD_ERRORS 2>&1
6058
errstatus=$?
6159
((counter++))
6260
done

0 commit comments

Comments
 (0)