add some logging to track notifications temporarily
This commit is contained in:
Родитель
4848fc5f9c
Коммит
2fce5cd68f
|
@ -30,6 +30,7 @@ class StageStatusPropagationListener implements StageListener {
|
|||
return
|
||||
}
|
||||
|
||||
log.debug("***** $stage.execution.id Stage ${stage.type} starting")
|
||||
log.info("Marking Stage as RUNNING (stageId: ${stage.id})")
|
||||
stage.startTime = stage.startTime ?: System.currentTimeMillis()
|
||||
stage.status = ExecutionStatus.RUNNING
|
||||
|
@ -71,10 +72,12 @@ class StageStatusPropagationListener implements StageListener {
|
|||
stage.status = executionStatus
|
||||
|
||||
if (executionStatus.complete) {
|
||||
log.debug("***** $stage.execution.id Stage $stage.type $executionStatus")
|
||||
stage.endTime = stage.endTime ?: System.currentTimeMillis()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
log.debug("***** $stage.execution.id Stage $stage.type terminal due to missing status")
|
||||
stage.endTime = System.currentTimeMillis()
|
||||
stage.status = ExecutionStatus.TERMINAL
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ class EchoNotifyingStageListener implements StageListener {
|
|||
<T extends Execution<T>> void beforeStage(Persister persister,
|
||||
Stage<T> stage) {
|
||||
if (stage.status == NOT_STARTED) {
|
||||
log.debug("***** $stage.execution.id Echo stage $stage.name starting v2")
|
||||
recordEvent("stage", "starting", stage)
|
||||
}
|
||||
}
|
||||
|
@ -58,11 +59,14 @@ class EchoNotifyingStageListener implements StageListener {
|
|||
if (stage.execution instanceof Pipeline && stage.execution.executionEngine == "v1") {
|
||||
if (wasSuccessful) {
|
||||
if (task.name.contains('stageEnd')) {
|
||||
log.debug("***** $stage.execution.id Echo stage $stage.name complete")
|
||||
recordEvent('stage', 'complete', stage, task)
|
||||
} else if (task.name.contains('stageStart')) {
|
||||
log.debug("***** $stage.execution.id Echo stage $stage.name starting")
|
||||
recordEvent('stage', 'starting', stage, task)
|
||||
}
|
||||
} else {
|
||||
log.debug("***** $stage.execution.id Echo stage $stage.name failed")
|
||||
recordEvent('stage', 'failed', stage, task)
|
||||
}
|
||||
}
|
||||
|
@ -73,8 +77,10 @@ class EchoNotifyingStageListener implements StageListener {
|
|||
Stage<T> stage) {
|
||||
if (stage.execution instanceof Pipeline) {
|
||||
if (stage.status.successful) {
|
||||
log.debug("***** $stage.execution.id Echo stage $stage.name complete v2")
|
||||
recordEvent('stage', 'complete', stage)
|
||||
} else {
|
||||
log.debug("***** $stage.execution.id Echo stage $stage.name failed v2")
|
||||
recordEvent('stage', 'failed', stage)
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче