This is an automated email from the ASF dual-hosted git repository.

jstastnycz pushed a commit to branch radtriste-fix-pipelines
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git


The following commit(s) were added to refs/heads/radtriste-fix-pipelines by 
this push:
     new 9fd1ee60 adjust folder for tests
9fd1ee60 is described below

commit 9fd1ee60cbacdbab9d19230a0412cb868b066120
Author: jstastny-cz <[email protected]>
AuthorDate: Wed Nov 15 11:35:09 2023 +0100

    adjust folder for tests
---
 tests/test-apps/clone-repo.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/test-apps/clone-repo.sh b/tests/test-apps/clone-repo.sh
index 6433f055..4feb39f3 100755
--- a/tests/test-apps/clone-repo.sh
+++ b/tests/test-apps/clone-repo.sh
@@ -4,6 +4,7 @@
 # if image name is supporting services, don't build it
 IMAGE_NAME="$2"
 KOGITO_EXAMPLES_REPO_NAME='incubator-kie-kogito-examples'
+KOGITO_EXAMPLES_FOLDER_NAME='kogito-examples' # many tests rely on location 
/tmp/kogito-examples
 
 prod=""
 if [ -n "${IMAGE_NAME}" ]; then
@@ -36,11 +37,10 @@ fi
 set -e
 
 # Clone examples
-KOGITO_EXAMPLES_DIR=/tmp/${KOGITO_EXAMPLES_REPO_NAME}
-cd /tmp
-rm -rf ${KOGITO_EXAMPLES_REPO_NAME}
-git clone https://github.com/apache/${KOGITO_EXAMPLES_REPO_NAME}.git
-cd ${KOGITO_EXAMPLES_REPO_NAME}/
+KOGITO_EXAMPLES_DIR=/tmp/${KOGITO_EXAMPLES_FOLDER_NAME}
+rm -rf ${KOGITO_EXAMPLES_DIR}
+git clone https://github.com/apache/${KOGITO_EXAMPLES_REPO_NAME}.git 
${KOGITO_EXAMPLES_DIR}
+cd ${KOGITO_EXAMPLES_DIR}/
 git fetch origin
 git fetch origin --tags
 git checkout -b nightly-main


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to