From 9122c1574a30d14d35d141ae16a28e78ee8ee113 Mon Sep 17 00:00:00 2001 From: Jenny Tam Date: Fri, 17 May 2019 11:36:51 -0700 Subject: [PATCH] Modified pipelines to connect using sqlcmd inside of the container instead (#995) --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ab688eae..3f048788 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -101,7 +101,8 @@ jobs: docker pull mcr.microsoft.com/mssql/server:2017-latest docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=$(pwd)' -p 1433:1433 -h $(host) --name=$(host) -d mcr.microsoft.com/mssql/server:2017-latest docker ps -a - sqlcmd -S $(server) -U $(uid) -P $(pwd) -Q 'select @@Version' + sleep 5 + docker exec -t $(host) /opt/mssql-tools/bin/sqlcmd -S $(server) -U $(uid) -P $(pwd) -Q 'select @@Version' displayName: 'Run SQL Server for Linux' - script: |