HHH-15448 Upgrade testing image for MSSQL Server to 2019-latest

This commit is contained in:
Sanne Grinovero 2022-08-15 15:59:01 +01:00 committed by Sanne Grinovero
parent 83f34113ca
commit dcf6730461
2 changed files with 3 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -161,7 +161,7 @@ stage('Build') {
state[buildEnv.tag]['containerName'] = "db2" state[buildEnv.tag]['containerName'] = "db2"
break; break;
case "mssql": case "mssql":
docker.image('mcr.microsoft.com/mssql/server:2017-CU13').pull() docker.image('mcr.microsoft.com/mssql/server@sha256:f54a84b8a802afdfa91a954e8ddfcec9973447ce8efec519adf593b54d49bedf').pull()
sh "./docker_db.sh mssql" sh "./docker_db.sh mssql"
state[buildEnv.tag]['containerName'] = "mssql" state[buildEnv.tag]['containerName'] = "mssql"
break; break;

View File

@ -177,7 +177,8 @@ EOF
mssql() { mssql() {
$CONTAINER_CLI rm -f mssql || true $CONTAINER_CLI rm -f mssql || true
$CONTAINER_CLI run --name mssql -d -p 1433:1433 -e "SA_PASSWORD=Hibernate_orm_test" -e ACCEPT_EULA=Y mcr.microsoft.com/mssql/server:2017-CU13 #This sha256 matches a specific tag of mcr.microsoft.com/mssql/server:2019-latest :
$CONTAINER_CLI run --name mssql -d -p 1433:1433 -e "SA_PASSWORD=Hibernate_orm_test" -e ACCEPT_EULA=Y mcr.microsoft.com/mssql/server@sha256:f54a84b8a802afdfa91a954e8ddfcec9973447ce8efec519adf593b54d49bedf
sleep 5 sleep 5
n=0 n=0
until [ "$n" -ge 5 ] until [ "$n" -ge 5 ]