Hello guys,
We recently needed a plugin that streams build information to Jenkins systems logs:
- Start time
- End time
- Job + build number
- Result
- Initiator
- Agent
We could accomplish it by adding a function to each Jenkinsfile (calling
java.util.logging.Logger), but since it had an overhead, I looked for an alternative.
I ended up creating a plugin, after not finding a plugin that does it.
Basically all build start / finish events are written to the (main) system log.
Example logs:
2023-05-29 10:42:57.132+0000 [id=78] INFO log_pipeline_plugin#onStarted: test.pipeline.startup build #90 triggered by hhadad on Built-In Node
2023-05-29 10:43:04.358+0000 [id=86] INFO log_pipeline_plugin#onCompleted: test.pipeline.startup build #90 finished with status: SUCCESS
My Questions:
1. Do you know of a plugin that does similar things?
2. If not, will it be a suitable plugin for hosting?
Thanks,
Harel.