Skip to content

Commit

Permalink
adjust folder for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz committed Nov 15, 2023
1 parent f87b03e commit 9fd1ee6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test-apps/clone-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9fd1ee6

Please sign in to comment.