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
|
||||
|
||||
Reference in New Issue
Block a user