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:
@@ -2,11 +2,15 @@ $ErrorActionPreference = "Stop"
|
||||
|
||||
$imageTag = if ($env:TEAMCITY_BUILD_NUMBER) { $env:TEAMCITY_BUILD_NUMBER } else { "local" }
|
||||
$imageName = "its-workflow-npm:$imageTag"
|
||||
$hostReportDir = "${PWD}\report-output"
|
||||
$containerReportDir = "/opt/app-root/src/report-output"
|
||||
|
||||
Write-Host "Builde Docker Image $imageName"
|
||||
docker build -t $imageName .
|
||||
|
||||
Write-Host "Starte Workflow Container"
|
||||
Write-Host "Kontext: IMAGE_TAG=$imageTag, JIRA_DRY_RUN=$($env:JIRA_DRY_RUN), ATLASSIAN_WIKI_ENABLED=$($env:ATLASSIAN_WIKI_ENABLED), SMTP_ENABLED=$($env:SMTP_ENABLED)"
|
||||
Write-Host "Volume Mapping: $hostReportDir -> $containerReportDir"
|
||||
docker run --rm `
|
||||
-e JIRA_BASE_URL `
|
||||
-e JIRA_USER_EMAIL `
|
||||
@@ -39,5 +43,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 "${hostReportDir}:$containerReportDir" `
|
||||
$imageName
|
||||
|
||||
@@ -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