Skip to content

Commit 6dcad7d

Browse files
committed
switch to sql server 2019
1 parent 8a566f8 commit 6dcad7d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ jobs:
257257

258258
- script: |
259259
docker version
260-
# Force pull the latest 2022 image
261-
docker pull --disable-content-trust mcr.microsoft.com/mssql/server:2022-latest
260+
docker pull mcr.microsoft.com/mssql/server:2019-latest
262261
docker run -e 'ACCEPT_EULA=Y' -e "SA_PASSWORD=$(TestAppPassword)" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest
263262
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
264263
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
@@ -335,14 +334,14 @@ jobs:
335334
export PATH="$PATH:/opt/mssql-tools/bin"
336335
337336
# Retry authentication until SQL Server finishes its internal upgrade process
338-
for i in {1..60}; do
339-
echo "Authentication attempt $i of 60..."
337+
for i in {1..30}; do
338+
echo "Authentication attempt $i of 30..."
340339
if sqlcmd -S localhost -U sa -P "$(TestAppPassword)" -Q "SELECT 1 AS test" -t 10 >/dev/null 2>&1; then
341340
echo "✅ SQL Server authentication successful after $i attempts!"
342341
break
343342
else
344-
if [ $i -eq 60 ]; then
345-
echo "❌ SQL Server authentication FAILED after 60 attempts!"
343+
if [ $i -eq 30 ]; then
344+
echo "❌ SQL Server authentication FAILED after 30 attempts!"
346345
echo "Final attempt with verbose output:"
347346
sqlcmd -S localhost -U sa -P "$(TestAppPassword)" -Q "SELECT 1 AS test" -t 10
348347
echo ""

0 commit comments

Comments
 (0)