Custom metrics for jenkins job

Viewed 347

My jenkins job "Build" configuration has

  • 3 Execute shell - build tasks
  • 2 Post build action

Is there any way to get the runtime of each buildtask and postbuild action ?

1 Answers

Not directly, which is why:

  • I use a Jenkins plugin timestamper to add the timestamps in the logs, giving me the opportunity to extract each task duration.
  • there are plugins like additional-metrics-plugin or build-metrics which collect job duration (but not necessarily task or post-build task duration): they could be good starting point for making a custom plugin which would collect what you need.
Related