Added GOSS_SLEEP flag to wait for container full start before tests

This commit is contained in:
Marcin-Ramotowski 2025-05-04 11:03:12 +00:00
parent 859a962c12
commit 60011b1c72

2
Jenkinsfile vendored
View File

@ -41,7 +41,7 @@ pipeline {
chmod +rx *goss 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' sh label: 'run image tests', script: './dgoss run -e SQLALCHEMY_DATABASE_URI=sqlite:///:memory: ${DOCKER_IMAGE} > goss_junit.xml'
} }
} }