File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
eng/pipelines/common/templates/steps Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 38
38
# Password for the SA user (required)
39
39
MSSQL_SA_PW=${{ parameters.password }}
40
40
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
43
43
44
44
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
45
45
54
54
do
55
55
echo "Waiting for SQL Server to start (attempt #$counter)..."
56
56
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
60
58
errstatus=$?
61
59
((counter++))
62
60
done
You can’t perform that action at this time.
0 commit comments