Skip to content

Commit

Permalink
copy aritifacts only if ARTIFACT_DIR var is exposed
Browse files Browse the repository at this point in the history
Signed-off-by: anandrkskd <[email protected]>
  • Loading branch information
anandrkskd committed Dec 13, 2022
1 parent e628075 commit de8deb1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/openshiftci-presubmit-all-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [ "${ARCH}" == "s390x" ]; then
make test-integration
# E2e tests
make test-e2e
elif [ "${ARCH}" == "ppc64le" ]; then
elif [ "${ARCH}" == "ppc64le" ]; then
# Integration tests
make test-integration
# E2e tests
Expand All @@ -55,7 +55,9 @@ else
fi
fi

#copy artifact to shared volume
cp -r test-*.xml $ARTIFACT_DIR

if [ ! -z "$ARTIFACT_DIR" ]
then
#copy artifact to $ARTIFACT_DIR if ARTIFACT_DIR var is exposed
cp -r test-*.xml $ARTIFACT_DIR
fi
oc logout

0 comments on commit de8deb1

Please sign in to comment.