pipeline siivous ja testikattavuuden nosto (#9)
Co-authored-by: moilanik <niko.moilanen@tietoevry.com> Reviewed-on: #9
This commit is contained in:
+11
-5
@@ -1,10 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# Vie raportit git-pagesiin + commit-status linkillä
|
||||
set -euo pipefail
|
||||
|
||||
REPORT_DIR="${1:-reports}"
|
||||
PAGES_HOST="${PAGES_HOST:-ci-reports.helm-dev.keskikuja.site}"
|
||||
SUITE_PATH="${1:-}"
|
||||
|
||||
REPORT_URL=$(bash "$(dirname $0)/publish-git-pages.sh" "$REPORT_DIR")
|
||||
[ -n "$SUITE_PATH" ] || { echo "ERROR: suite_path argument required" >&2; exit 1; }
|
||||
[ -n "${GITEA_API_URL:-}" ] || { echo "ERROR: GITEA_API_URL is not set" >&2; exit 1; }
|
||||
[ -n "${GITEA_TOKEN:-}" ] || { echo "ERROR: GITEA_TOKEN is not set" >&2; exit 1; }
|
||||
[ -n "${GIT_PAGES_URL:-}" ] || { echo "ERROR: GIT_PAGES_URL is not set" >&2; exit 1; }
|
||||
[ -n "${GIT_PAGES_PUBLISH_TOKEN:-}" ] || { echo "ERROR: GIT_PAGES_PUBLISH_TOKEN is not set" >&2; exit 1; }
|
||||
|
||||
SCRIPT_DIR="$(dirname "$0")"
|
||||
|
||||
REPORT_URL=$(bash "$SCRIPT_DIR/publish-git-pages.sh" "$SUITE_PATH")
|
||||
echo "Published: $REPORT_URL"
|
||||
bash "$(dirname $0)/report-status.sh" success "Reports published" "$REPORT_URL" ci-report
|
||||
bash "$SCRIPT_DIR/report-status.sh" success "Reports published" "ci-report"
|
||||
|
||||
Reference in New Issue
Block a user