copy aritifacts only if ARTIFACT_DIR var is exposed
@@ -55,7 +55,9 @@ else
fi
fi
-#copy artifact to shared volume
+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
