github.com/verrazzano/verrazzano@v1.7.1/ci/scripts/save_console_test_artifacts.sh (about) 1 #!/usr/bin/env bash 2 # 3 # Copyright (c) 2021, 2022, Oracle and/or its affiliates. 4 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 5 # 6 if [ -z "${GO_REPO_PATH}" ] || [ -z "${WORKSPACE}" ]; then 7 echo "This script must only be called from Jenkins and requires a number of environment variables are set" 8 exit 1 9 fi 10 11 cd ${GO_REPO_PATH}/console 12 # Copy artifacts to workspace, ignore if copy fails 13 mkdir -p ${WORKSPACE}/console/screenshots 14 mkdir -p ${WORKSPACE}/console/logs 15 ls Screenshot*.png || true 16 cp Screenshot*.png ${WORKSPACE}/console/screenshots || true 17 ls ConsoleLog*.log || true 18 cp ConsoleLog*.log ${WORKSPACE}/console/logs || true