From 60011b1c7205e716e2ebedd3c49f0224bfcd9194 Mon Sep 17 00:00:00 2001 From: Marcin-Ramotowski Date: Sun, 4 May 2025 11:03:12 +0000 Subject: [PATCH] Added GOSS_SLEEP flag to wait for container full start before tests --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4716090..9bf7608 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,7 +41,7 @@ pipeline { chmod +rx *goss ''' - withEnv(["GOSS_OPTS=-f junit", 'GOSS_PATH=./goss', "SQLALCHEMY_DATABASE_URI=sqlite:///:memory:"]) { + withEnv(['GOSS_OPTS=-f junit', 'GOSS_PATH=./goss', 'GOSS_SLEEP=1', 'SQLALCHEMY_DATABASE_URI=sqlite:///:memory:']) { sh label: 'run image tests', script: './dgoss run -e SQLALCHEMY_DATABASE_URI=sqlite:///:memory: ${DOCKER_IMAGE} > goss_junit.xml' } }