Fix collect logs script
set -e
echo "Collecting tests logs"
mkdir -p artifacts/logs
-cp -r integration-tests/testsuite/target/logs artifacts
mkdir -p artifacts/failsafe-reports
-cp -r integration-tests/testsuite/target/failsafe-reports artifacts
+
+DIR="integration-tests/testsuite/target"
+if [ -d "$DIR" ]; then
+ echo "Collecting testsuite logs"
+ cp -r ${DIR}/logs artifacts
+ cp -r ${DIR}/failsafe-reports artifacts
+fi
+
mkdir -p artifacts/legacy
-cp -r integration-tests/legacy-tests/target/logs artifacts/legacy | true
\ No newline at end of file
+DIR="integration-tests/legacy-tests/target"
+if [ -d "$DIR" ]; then
+ echo "Collecting testsuite logs"
+ cp -r ${DIR}/logs artifacts/legacy | true
+fi
\ No newline at end of file
