You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
755 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#!/usr/bin/env bash
# task-135nightly 可选 RPA probesecrets 缺失时跳过
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
LOG="${PROBE_NIGHTLY_LOG:-probe-nightly.log}"
if [[ -z "${MOTHERSHIP_USERNAME:-}" || -z "${MOTHERSHIP_PASSWORD:-}" ]]; then
echo "SKIP: 未配置 MOTHERSHIP_USERNAME / MOTHERSHIP_PASSWORD跳过 probe"
exit 0
fi
if [[ -z "${MOTHERSHIP_QUOTE_URLS:-}" ]]; then
echo "SKIP: 未配置 MOTHERSHIP_QUOTE_URLS跳过 probe"
exit 0
fi
export RPA_MOCK_MODE=false
echo "=== nightly RPA probe 3/3 开始 ===" | tee "$LOG"
if bash scripts/probe-rpa-3x.sh 2>&1 | tee -a "$LOG"; then
echo "=== probe 3/3 PASS ===" | tee -a "$LOG"
exit 0
fi
echo "=== probe 3/3 FAIL ===" | tee -a "$LOG"
exit 1