Skip to content

Commit

Permalink
fix(cron): add trigger id to pipeline execution logs (#598)
Browse files Browse the repository at this point in the history
this will aid debugging multiple triggers
  • Loading branch information
marchello2000 committed Jul 6, 2019
1 parent 1676f88 commit d33e511
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class PipelineTriggerJob implements Job {
pipeline = TriggerConverter.toPipeline(pipelineCache, context.getMergedJobDataMap().getWrappedMap())
def eventId = pipeline.trigger.eventId ? pipeline.trigger.eventId : "not set"

LOGGER.info("Executing PipelineTriggerJob for '${pipeline}', eventId='${eventId}'")
LOGGER.info("Executing PipelineTriggerJob for '${pipeline}', eventId='${eventId}', triggerId='${context.trigger.key.name}'")
pipelineInitiator.startPipeline(pipeline, PipelineInitiator.TriggerSource.SCHEDULER)
} catch (Exception e) {
LOGGER.error("Exception occurred while executing PipelineTriggerJob for ${pipeline}", e)
Expand Down

0 comments on commit d33e511

Please sign in to comment.