feat(logging): erweitertes Workflow-Logging in App und TeamCity-Skripten
- detaillierte Schritt-Logs mit Timestamp in `src/index.js` ergänzt - Logging für Laufkontext hinzugefügt (Dry-Run, JQL, Zielprojekt/Board, Wiki/SMTP/Output) - Logging für Jira-Fetch, Report-Erstellung, Ticket-/Wiki-Erstellung, HTML-Write und Mail-Versand erweitert - TeamCity Wrapper (`run-workflow.sh` und `run-workflow.ps1`) um Kontext-Logs erweitert - Volume-Mapping in TeamCity-Skripten als explizite Log-Ausgabe ergänzt
This commit is contained in:
@@ -3,11 +3,15 @@ set -eu
|
||||
|
||||
IMAGE_TAG="${TEAMCITY_BUILD_NUMBER:-local}"
|
||||
IMAGE_NAME="its-workflow-npm:${IMAGE_TAG}"
|
||||
HOST_REPORT_DIR="$(pwd)/report-output"
|
||||
CONTAINER_REPORT_DIR="/opt/app-root/src/report-output"
|
||||
|
||||
echo "Builde Docker Image ${IMAGE_NAME}"
|
||||
docker build -t "${IMAGE_NAME}" .
|
||||
|
||||
echo "Starte Workflow Container"
|
||||
echo "Kontext: IMAGE_TAG=${IMAGE_TAG}, JIRA_DRY_RUN=${JIRA_DRY_RUN:-false}, ATLASSIAN_WIKI_ENABLED=${ATLASSIAN_WIKI_ENABLED:-false}, SMTP_ENABLED=${SMTP_ENABLED:-false}"
|
||||
echo "Volume Mapping: ${HOST_REPORT_DIR} -> ${CONTAINER_REPORT_DIR}"
|
||||
docker run --rm \
|
||||
-e JIRA_BASE_URL \
|
||||
-e JIRA_USER_EMAIL \
|
||||
@@ -40,5 +44,5 @@ docker run --rm \
|
||||
-e SMTP_FROM \
|
||||
-e SMTP_TO \
|
||||
-e SMTP_SUBJECT_PREFIX \
|
||||
-v "$(pwd)/report-output:/opt/app-root/src/report-output" \
|
||||
-v "${HOST_REPORT_DIR}:${CONTAINER_REPORT_DIR}" \
|
||||
"${IMAGE_NAME}"
|
||||
|
||||
Reference in New Issue
Block a user