mirror of
https://github.com/appleboy/drone-jenkins.git
synced 2026-06-04 18:23:57 +08:00
build: enable detailed build info logging in debug mode
- Add debug logging to display final build information when debug mode is enabled Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
+10
@@ -293,6 +293,16 @@ func (jenkins *Jenkins) waitForCompletion(
|
|||||||
buildNumber,
|
buildNumber,
|
||||||
buildInfo.Result,
|
buildInfo.Result,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Debug: Display final build info
|
||||||
|
if jenkins.Debug {
|
||||||
|
log.Println("=== Debug Mode: Build Result ===")
|
||||||
|
if err := godump.Dump(buildInfo); err != nil {
|
||||||
|
log.Printf("warning: failed to dump build info: %v", err)
|
||||||
|
}
|
||||||
|
log.Println("================================")
|
||||||
|
}
|
||||||
|
|
||||||
return buildInfo, nil
|
return buildInfo, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user