From fe53772eed9253508cb93daf87d2da5f341e5844 Mon Sep 17 00:00:00 2001 From: RIHTARSIC Joze <joze.rihtarsic@ext.ec.europa.eu> Date: Sat, 2 Mar 2024 08:18:53 +0100 Subject: [PATCH] [URGENT] fix build tests --- .../images/domismp-springboot-mysql/build.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/domismp-tests/domismp-docker/images/domismp-springboot-mysql/build.sh b/domismp-tests/domismp-docker/images/domismp-springboot-mysql/build.sh index ef97896e2..31a65a186 100755 --- a/domismp-tests/domismp-docker/images/domismp-springboot-mysql/build.sh +++ b/domismp-tests/domismp-docker/images/domismp-springboot-mysql/build.sh @@ -4,14 +4,17 @@ # first it copies external resources to resources folder # then it builds the image using docker-compose.build.yml # and finally it cleans the external resources +WORKING_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +cd "${WORKING_DIR}" + +source "${WORKING_DIR}/../../functions/common.functions" +initializeCommonVariables + : "${SMP_PROJECT_FOLDER:?Need to set SMP project folder non-empty!}" : "${SMP_VERSION:?Need to set SMP version non-empty!}" : "${SMP_ARTEFACTS:?Need to set SMP_ARTEFACTS non-empty!}" : "${SMP_SPRINGBOOT_ARTEFACTS:?Need to set SMP_SPRINGBOOT_ARTEFACTS non-empty!}" -WORKING_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -cd "${WORKING_DIR}" - copyExternalImageResources() { echo "Copy test project resources ..." # copy artefact to docker build folder -- GitLab