Prasanth P
Prasanth P

Reputation: 85

Custom metrics for jenkins job

My jenkins job "Build" configuration has

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

Upvotes: 3

Views: 988

Answers (1)

VonC
VonC

Reputation: 1323803

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.

Upvotes: 2

Related Questions